int LaunchExecutableEx (char *fileName, int windowState, int *handle);
Performs the same operation as LaunchExecutable with the following extended features:
![]() |
Note If you want to wait for the program to exit, use the system function in the ANSI C Library. |
When you launch several processes with LaunchExecutableEx but do not call RetireExecutableHandle on them, you might reach the limit for the maximum number of processes the system imposes. This happens even if the processes terminate; the program does not recognize that the processes have terminated until you call RetireExecutableHandle.
Input | ||||||||||||||||
Name | Type | Description | ||||||||||||||
fileName | string | Pathname of executable file to run. If the program is not in one of the directories specified in the PATH environment variable, you must specify the full path. The path can include arguments to pass to the program. If the program is a .pif, .bat, or .com file, you must include the extension in the pathname. For example, under Windows, the following command string launches the Edit program with the file file.dat: c:\\dos\\edit.com c:\\file.dat |
||||||||||||||
windowState | integer | Specifies how to show a Windows program. Linux This parameter is ignored. The following table shows valid values for windowState.
|
||||||||||||||
Output | ||||||||||||||||
Name | Type | Description | ||||||||||||||
handle | integer | Handle that represents the executable launched. You can pass the handle to ExecutableHasTerminated and TerminateExecutable. When you no longer need the handle, call RetireExecutableHandle. If you do not want to obtain a handle, you can pass NULL. |
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
result | integer | Result of the operation.
|