Indicates whether a program started by the WinExec function is still running.

Function Group Execution Windows Embedded Thin Client
WinExecIsRunning Module Activity Synchronous Supported Supported Supported


WinExecIsrunning( numHandle, "optTagReturn" )
Handle number stored in the tag in the optStrReturnorHandle parameter of the WinExec function.
Tag that receives the code returned by the program executed by the WinExec function.

Returned value

0 Successful execution.
-1 Invalid parameter(s).
-2 Failed to open file. Disk is write protected or file name is invalid.


Tag Name Expression
Tag WinExecIsRunning( numHandle )
Tag WinExecIsRunning( numHandle, "return" )