how to use WaitForSingleobject
- by Tyzak
hello in order to try out how to programm with the win32 api i wrote a programm that creates a process.
then i want to check if my proccess waits for the new created process, close the handle and then check waitforsingle obj. again. (the seconde process is sleeping for 700 ms)
first process:
#include <iostream>
#include <windows.h>…