Thanks for the help!
But the WairForMulipleObjects() has an extra timeout parameter so i don't need this extra handle to a timer. I guess i looked to long at it and did not see this immediatly.
The app i'm working on is monitoring a folder. Whenever the folder changes (a new file is dropped into it) this app has to read the file and pass it to another app that is waiting for input.
Monitoring the folder is done with the FindFirstChange() API call that creates a handle to a change...
I try to use the Windows API Function SetWaitableTimer() together with WaitForMultipleObjects() so the program waits either for a timeout or for some other action (a change in a certain folder).
Description of SetWaitableTimer:
BOOL WINAPI SetWaitableTimer(
__in HANDLE hTimer,
__in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.