Obtains the ID for the current process. The ID is a unique value that identifies the process but differs from a handle. A process ID can be used in OpenProcess, RtOpenProcess (iwin32), and RtOpenProcess (iwin32x).
DWORD GetCurrentProcessId(VOID);
None.
The process identifier of the calling process.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/winbase.h | windows.h | iwin32.lib |
Notes
This function operates in the real-time portion of your application.
GetCurrentProcess, OpenProcess, RtOpenProcess (iwin32) RtOpenProcess (iwin32x), iwin32 API, iwin32 Overview