ProgramID()
语法
Result = ProgramID(Program)概要
Returns the unique system identifier for the given program. This is the so called "Process ID" or "PID".
参数
Program The program to use. It must have been started before with RunProgram().
返回值
The unique system identifier for the given program.
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() functions). Rather, it is the Process ID which may be viewed within the Taskmanager. To get a process handle, use the OpenProcess_() API.
已支持操作系统
所有