Re: Editor
- Posted by jimcbrown (admin) Dec 08, 2014
- 6119 views
PeteE said...
I looked into using FindFirstChangeNotification, but it seems like it would require a separate thread, since it you have to wait for an event using WaitForSingleObject.
Looking at the example your link provides, http://msdn.microsoft.com/en-us/library/windows/desktop/aa365261(v=vs.85).aspx , it seems that using a helper child process (a helper program that simply runs, waits on a single file passed on its command line, then somehow asychonously signals the parent process when the wait is over) should work too. The IPC part would be a pain, but it's not like you have to share memory addresses between two different threads of execution in this case...