Application-execution tasks permit one application to execute another program. Following are the application-execution 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 MS-DOS application. The calling application supplies a string containing the name of the executable file to be run and any command parameters, and it also specifies the initial state of the application 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 an MS-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 that specifies a context identifier in the help file or a string containing a keyword in the help file.