[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
int pascal WinExec(char *szCommand, int bSwap)
This function spawns the child program specified by szCommand. It
will also try to swap your entire MEWEL application to disk or to
expanded memory, leaving a small 1K stub resident. For a sample of
how to use the WinExec() function, please refer to the source code
supplied with the MEWEL DESKTOP application.
Parameters
szCommand is the complete command line for the child process.
bSwap is TRUE if you want to try to swap the currently running MEWEL
application out to disk or to expanded memory. WinExec() will
automatically detect expanded memory, and will swap to expanded
memory if you have an EMS driver which is version 3.0 or above, and if
enough expanded memory is available.
Returns
0x0000 to 0x00FF - the return code from thge exec'ed program
0x0100 - Error writing the swap file
0x0200 - Program file not found
0x03yy - DOS error code yy calling EXEC
0x0400 - Error allocating environment buffer
Note - the swapping of the parent is not performed under OS/2.
Example
rc = WinExec("cl /c /AL foo.c", TRUE);
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson