Retrieves the process identifier of the calling process.
Syntax
DWORD WINAPI GetCurrentProcessId(void);
Parameters
This function has no parameters.
Return Value
The return value is the process identifier of the calling process.
Remarks
Until the process terminates, the process identifier uniquely identifies the process throughout the system.
Requirements
| Minimum supported client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Header | Winbase.h (include Windows.h) |
| Library | Kernel32.lib |
| DLL | Kernel32.dll |
See Also
- GetCurrentProcess
- OpenProcess
- Process and Thread Functions
- Processes
Send comments about this topic to Microsoft
Build date: 10/8/2009