ProgramID()
Syntax
Result = ProgramID(Program)Description
Returns the unique system identifier for the given Program (started before with RunProgram()). This is the so called "Process ID".
If the identifier cannot be returned, -1 will be returned.
This will happen if RunProgram() is used to open a file in another program, like RunProgram("Source.pb").
Note: the value returned here is not a handle (unlike with most other ...ID() commands). It is rather the Process ID that can be viewed in the Taskmanager. To get a process handle, use the OpenProcess_() Api.
Supported OS
All