Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.34 KB

File metadata and controls

50 lines (33 loc) · 1.34 KB

Home

Function name : GetCurrentProcessId

Group: Process and Thread - Library: kernel32


The GetCurrentProcessId function retrieves the process identifier of the calling process.


Code examples:

GetProcessVersion points at target OS
Reading and setting the priority class values for the current process and thread
How to hide your program from the Close Program dialog (Win9* only)
How to find when the application started
Obtaining I/O counts for the current process

Declaration:

DWORD GetCurrentProcessId(VOID);  

FoxPro declaration:

DECLARE INTEGER GetCurrentProcessId;
	IN kernel32  

Parameters:

This function has no parameters.


Return value:

The return value is the process identifier of the calling process.


Comments:

Until the process terminates, the process identifier uniquely identifies the process throughout the system.

Application.ProcessId returns identical result and most likely wraps this function.