Microsoft Windows CE 3.0  

GetCurrentProcess

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This function returns a pseudohandle for the current process.

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 OpenProcessfunction to open a real handle to itself.

The pseudohandle need not be closed when it is no longer needed. Calling the CloseHandlefunction with a pseudohandle can have unexplained results.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Kfuncs.h   Nk.lib
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CloseHandle, GetCurrentProcessId, GetCurrentThread, OpenProcess