quote:
Originally posted by vikke
you should use CreateFileEx.
There is no CreateFileEx... How about CreateFile instead?
If the file fails to open, make sure that GetLastError returns ERROR_FILE_NOT_FOUND or ERROR_PATH_NOT_FOUND or ther could be some other issue other than a missing file.
However you choose to keep checking you've got to put forth some effort. A thread is more difficult in some languages than timers.