Compartilhar via


GetCurrentProcess (Windows CE 5.0)

Send Feedback

This function returns a pseudohandle for the current process.

HANDLEGetCurrentProcess(void);

Parameters

None.

Return Values

The return value is a pseudohandle to the current process.

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 when 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 does not need to be closed when it is no longer needed.

Calling the CloseHandle function with a pseudohandle can have unexplained results.

To retrieve the identifier for the current process, use the GetCurrentProcessId function. The process identifier value returned from GetCurrentProcessId can be cast to a handle and used in functions that require process handles.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Kfuncs.h.
Link Library: Coredll.lib.

See Also

CloseHandle | GetCurrentProcessId | GetCurrentThread | GetCallerProcess | GetOwnerProcess | OpenProcess

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.