A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



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

Library
Kernel32

Return Values
The return value is the process identifier of the calling process.

Last update: 07 April 2006