Application-execution tasks permit one application to execute another program. The following list briefly describe these functions:
Function | Description | |
LoadModule | Executes a separate application. | |
WinExec | Executes a separate application. | |
WinHelp | Runs the Windows Help application and passes context or topic information to Help. |
The WinExec function provides a high-level method for executing any Windows or standard DOS application. The calling application supplies a string containing the name of the executable file to be run and any command parameters, and specifies the initial state of the application's window.
The LoadModule function is similar, but provides more control over the environment in which the application is executed. The calling application supplies the name of the executable file and a DOS Function 4BH, Code 00H, parameter block.
The WinHelp function executes the Windows Help application and optionally passes data to it indicating the nature of the help requested by the application. This data is either an integer which specifies a context identifier in the help file or a string containing a key word in the help file.