CreateProcess()
API.
This list of strange arguments needed for the CreateProcess()
is
long, so to do it right you always need to look up the documentation.
This wrapper class promotes simple use of the CreateProcess()
function - with simple constructors and default argument values.
It also supports waiting for process termination.
Interface
Name | Description | |
---|---|---|
![]() | StartProgram | Launch application w. wait option. |
![]() | OpenProcess | Lanch application. |
![]() | GetLastError | Get last error code. |
![]() | WaitForTermination | Wait for process termination. |
![]() | CheckForTermination | Has the process termianted. |
![]() | ReleaseProcessInfo | Release information. |
![]() | ShellProgram | Use ShellExecute to launch application. |
![]() | IsExecutable | Is filename an executable? |
Notes
The use of the much more simple
WinExec()
function,
is not recommended by Microsoft because it is marked obsolete.Source Code Dependencies
Microsoft MFC LibraryMy Global MFC functions
Download Files
![]() | Source Code (5 Kb) |