Skip to content

Latest commit

 

History

History
173 lines (132 loc) · 4.78 KB

nf-fileapi-findnextchangenotification.md

File metadata and controls

173 lines (132 loc) · 4.78 KB
UIDtitledescriptionhelpviewer_keywordsold-locationtech.rootms.assetidms.datems.keywordsreq.headerreq.include-headerreq.target-typereq.target-min-winverclntreq.target-min-winversvrreq.kmdf-verreq.umdf-verreq.ddi-compliancereq.unicode-ansireq.idlreq.max-supportreq.namespacereq.assemblyreq.type-libraryreq.libreq.dllreq.irqltargetosreq.typenamesreq.redistms.customf1_keywordsdev_langstopic_typeapi_typeapi_locationapi_name
NF:fileapi.FindNextChangeNotification
FindNextChangeNotification function (fileapi.h)
Requests that the operating system signal a change notification handle the next time it detects an appropriate change.
FindNextChangeNotification
FindNextChangeNotification function [Files]
_win32_findnextchangenotification
base.findnextchangenotification
fileapi/FindNextChangeNotification
fs.findnextchangenotification
winbase/FindNextChangeNotification
fs\findnextchangenotification.htm
fs
0f93cc96-6e3b-4c03-aa5a-7a74d054a7ff
12/05/2018
FindNextChangeNotification, FindNextChangeNotification function [Files], _win32_findnextchangenotification, base.findnextchangenotification, fileapi/FindNextChangeNotification, fs.findnextchangenotification, winbase/FindNextChangeNotification
fileapi.h
Windows.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Kernel32.lib
Kernel32.dll
Windows
19H1
FindNextChangeNotification
fileapi/FindNextChangeNotification
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
API-MS-Win-Core-File-l1-1-0.dll
KernelBase.dll
API-MS-Win-Core-File-l1-2-0.dll
API-MS-Win-Core-File-l1-2-1.dll
API-MS-Win-Core-File-l1-2-2.dll
API-MS-Win-DownLevel-Kernel32-l1-1-0.dll
MinKernelBase.dll
FindNextChangeNotification

FindNextChangeNotification function

-description

Requests that the operating system signal a change notification handle the next time it detects an appropriate change.

-parameters

-param hChangeHandle [in]

A handle to a change notification handle created by the FindFirstChangeNotification function.

-returns

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.

-remarks

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.

Each successful call to FindNextChangeNotification must be followed by a call to one of the wait functions. If the wait function returns for any reason other than the change notification handle being signaled (for example, if the wait times out), the application must retry the wait. Failing to follow this rule can cause the system to eventually run out of resources. It can also cause the application to miss some change notifications.

When hChangeHandle is no longer needed, close it by using the FindCloseChangeNotification function.

In Windows 8 and Windows Server 2012, this function is supported by the following technologies.

TechnologySupported
Server Message Block (SMB) 3.0 protocol Yes
SMB 3.0 Transparent Failover (TFO) Yes
SMB 3.0 with Scale-out File Shares (SO) Yes
Cluster Shared Volume File System (CsvFS) See remark
Resilient File System (ReFS) Yes
 

Application might experience false positives on CsvFs pause/resume.

Examples

For an example, see Obtaining Directory Change Notifications.

-see-also

Directory Management Functions

FindCloseChangeNotification

FindFirstChangeNotification

close