RunAndWait

This program shows how to execute other programs and wait for them to finish before continuing. Also captures the output from a console app.


Win API Functions used:

CloseHandle
CreatePipe
CreateProcess
FormatMessage
GetExitCodeProcess
GetLastError
PeekNamedPipe
ReadFile
RtlZeroMemory
ShellExecute
ShellExecuteEx
TerminateProcess
WaitForSingleObject


——— Last updated 04/05/2022 ———