..msdn Add comment W32 Constants Translate this page
The ReadDirectoryChangesW function retrieves information describing the changes occurring within a directory.|
DECLARE INTEGER ReadDirectoryChangesW IN kernel32;
STRING @ lpBuffer,;
INTEGER @ lpBytesReturned,;
[in] Handle to the directory to be monitored. This directory must be opened with the FILE_LIST_DIRECTORY access right.
[in, out] Pointer to the formatted buffer in which the read results are to be returned.
[in] Length of the buffer pointed to by the lpBuffer parameter, in bytes.
[in] If this parameter is TRUE, the function monitors the directory tree rooted at the specified directory.
[in] Filter criteria the function checks to determine if the wait operation has completed.
[out] For synchronous calls, this parameter receives the number of bytes transferred into the lpBuffer parameter.
[in] Pointer to an OVERLAPPED structure that supplies data to be used during asynchronous operation.
[in] Pointer to a completion routine to be called when the operation has been completed or canceled and the calling thread is in an alertable wait state.
|If the function succeeds, the return value is nonzero. For synchronous calls, this means that the operation succeeded. For asynchronous calls, this indicates that the operation was successfully queued.|
If the function fails, the return value is zero. To get extended error information, call GetLastError.
|Deleting a directory with subdirectories into the Recycle Bin produces a single FILE_NOTIFY_INFORMATION structure with the directory data. While a direct delete (the Recycle Bin is bypassed) triggers ReadDirectoryChangesW for each subdirectory, and finally for the directory.|
See also: NetFileEnum, FindFirstChangeNotification
|Word Index links for the ReadDirectoryChangesW :|
|Translate this page:|
Visited in last 7 days: 27
|Created: ||2003-05-09 09:30:06|
|Modified: ||2011-01-30 12:56:59|