Partager via


GetCurrentProcessId

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function returns the process identifier of the calling process.

Syntax

DWORD GetCurrentProcessId(void);

Parameters

None.

Return Value

Process identifier of the calling process.

Remarks

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

Requirements

Header kfuncs.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Process and Thread Functions
GetCurrentProcess