GetCurrentProcess

This function returns a pseudohandle for the current process.

At a Glance

Header file: Kfuncs.h
Windows CE versions: 1.0 and later

Syntax

HANDLE GetCurrentProcess(void);

Return Values

A pseudohandle to the current process indicates success.

Remarks

A pseudohandle is a special constant that is interpreted as the current process handle. The calling process can use this handle to specify its own process whenever a process handle is required.

This handle has the maximum possible access to the process object. A process can also use the OpenProcess function to open a real handle to itself.

The pseudohandle need not be closed when it is no longer needed. Calling the CloseHandle function with a pseudohandle has no effect.

See Also

CloseHandle, GetCurrentProcessId, GetCurrentThread