GetCurrentProcessId The GetCurrentProcessId function returns the process identifier of the calling process.
VB4-32,5,6
Declare Function GetCurrentProcessId Lib "kernel32" Alias "GetCurrentProcessId" () As Long |
VB.NET
System.Diagnostics.Process.GetCurrentProcess.Id |
Operating Systems Supported |
Requires Windows NT 3.1 or later; Requires Windows 95 or later |
The return value is the process identifier of the calling process. |
|