GetCurrentProcessId

This function returns the process identifier of the calling process.

At a Glance

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

Syntax

DWORD GetCurrentProcessId(void);

Return Values

The identifier of the calling process indicates success.

Remarks

Until the process terminates, the process identifier uniquely identifies the process throughout the system. In Windows CE, the processor identifier returned from this function is the same as the process handle.

See Also

GetCurrentProcess