Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
FILE_NOTIFY_INFORMATION structure (winnt.h)
Describes the changes found by the ReadDirectoryChangesW function.
Syntax
typedef struct _FILE_NOTIFY_INFORMATION {
DWORD NextEntryOffset;
DWORD Action;
DWORD FileNameLength;
WCHAR FileName[1];
} FILE_NOTIFY_INFORMATION, *PFILE_NOTIFY_INFORMATION;
Members
NextEntryOffset
The number of bytes that must be skipped to get to the next record. A value of zero indicates that this is the last record.
Action
The type of change that has occurred. This member can be one of the following values.
| Value | Meaning |
|---|---|
|
The file was added to the directory. |
|
The file was removed from the directory. |
|
The file was modified. This can be a change in the time stamp or attributes. |
|
The file was renamed and this is the old name. |
|
The file was renamed and this is the new name. |
FileNameLength
The size of the file name portion of the record, in bytes. Note that this value does not include the terminating null character.
FileName[1]
A variable-length field that contains the file name relative to the directory handle. The file name is in the Unicode character format and is not null-terminated.
If there is both a short and long name for the file, the function will return one of these names, but it is unspecified which one.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Header | winnt.h (include Windows.h) |
See also
Feedback
Was this page helpful?
