RunAndWait

This program shows how to execute other programs and wait for them to finish before continuing. Also shows how to automatically load a file into the program registered for that file type. The PB 12.6 sample is modified to work in 32bit and 64bit modes.



Win API Functions used:

CloseHandle
CreateProcess
ExpandEnvironmentStrings
GetExitCodeProcess
ShellExecuteEx
TerminateProcess
WaitForSingleObject


——— Last updated 07/25/2017 ———