Platform SDK: Files and I/O |
The FindNextChangeNotification function requests that the operating system signal a change notification handle the next time it detects an appropriate change.
BOOL FindNextChangeNotification( HANDLE hChangeHandle // handle to change notification );
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
After the FindNextChangeNotification function returns successfully, the application can wait for notification that a change has occurred by using the wait functions.
If a change occurs after a call to FindFirstChangeNotification but before a call to FindNextChangeNotification, the operating system records the change. When FindNextChangeNotification is executed, the recorded change immediately satisfies a wait for the change notification.
FindNextChangeNotification should not be used more than once on the same handle without using one of the wait functions. An application may miss a change notification if it uses FindNextChangeNotification when there is a change request outstanding.
When hChangeHandle is no longer needed, close it by using the FindCloseChangeNotification function.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
File I/O Overview, File I/O Functions, FindCloseChangeNotification, FindFirstChangeNotification