Re: WaitForSingleObject on a file handle?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



HTTBird wrote:
On Windows XP SP2 and/or Windows Server 2K3, is it possible to use WaitForSingleObject on a file handle to wait for a file change?

Use ReadDirectoryChangesW in overlapped mode. WaitForSingleObject can wait on the event in the OVERLAPPED struct.


--
Scott McPhillips [VC++ MVP]

.