The System library provides access to low-level operating system and process management functions.
To use the System library, include System.bi in your project.
'$INCLUDE:'InForm/extensions/System.bi'
DIM pid AS LONG
pid = System_GetProcessID
PRINT "Current Process ID: "; pidRetrieves the unique process identifier (PID) of the current calling process from the operating system.
Returns:
The process ID as a 32-bit signed LONG integer.
FUNCTION System_GetProcessID&