This document is archived and information here might be outdated. Recommended version.
The process ID for the application.
[Visual Basic .NET] Public Function GetProcessID ( _ ) As Integer
[C#] public int GetProcessID ( );