WaitForProcess |
Previous Top Next |
ProcessID
|
[in]
The processID to wait for completion. The process ID can come from
ExecuteExternalProcess or ExecuteVirtualProcess |
TimeOutInMilliSeconds
|
[in]
The maximum amount of time to wait for the process to end before
continuing. If 0 is specified, INFINITE is used |
This
function returns an integer |
0 =
Timeout failed |
1 =
Process exited |
2 =
The process does not exists or security denied |
|
id =
ExecuteExternalProcess("cmd.exe") |
WaitForProcess(id,
0) |