Obtains the pseudo handle for the current process; the handle cannot be closed.
HANDLE GetCurrentProcess(VOID);
None.
A pseudohandle is a special constant interpreted as the current process handle. When a process handle is required, the calling process can use this handle to specify its own process.
To open a real handle to itself, a process can also use OpenProcess.
When no longer needed, the pseudohandle does not need to close.
To retrieve the identifier for the current process, use GetCurrentProcessId.
A pseudohandle to the current 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.
CloseHandle, GetCurrentProcessId, GetCurrentThread, OpenProcess, iwin32 API, iwin32 Overview