The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
GetCurrentProcessId function
Retrieves the process identifier of the calling process.
Syntax
DWORD WINAPI GetCurrentProcessId(void);
Parameters
This function has no parameters.
Return value
The return value is the process identifier of the calling process.
Remarks
Until the process terminates, the process identifier uniquely identifies the process throughout the system.
Requirements
|
Minimum supported client |
Windows XP [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Show: