FILE_NOTIFY_INFORMATION (Compact 2013)

3/26/2014

This structure describes the changes found by the CeGetFileNotificationInfo function.

Syntax

typedef struct _FILE_NOTIFY_INFORMATION {
  DWORD NextEntryOffset; 
  DWORD Action; 
  DWORD FileNameLength; 
  WCHAR FileName[1]; 
} FILE_NOTIFY_INFORMATION, *PFILE_NOTIFY_INFORMATION; 

Members

  • NextEntryOffset
    Number of bytes that must be skipped to get the next record. A value of zero indicates that this is the last record.
  • Action
    Type of change that occurred. The following table shows possible values.

    Value

    Description

    FILE_ACTION_CHANGE_COMPLETED

    The change has been completed.

    FILE_ACTION_ADDED

    The file was added to the directory.

    FILE_ACTION_MODIFIED

    The file was modified. This can be a change in the time stamp or attributes.

    FILE_ACTION_REMOVED

    The file was removed from the directory.

    FILE_ACTION_RENAMED_NEW_NAME

    The file was renamed, and this value is the new name.

    FILE_ACTION_RENAMED_OLD_NAME

    The file was renamed, and this value is the old name.

  • FileNameLength
    Length of the file name portion of the record, in bytes. The length does not include the terminating NULL character.
  • FileName
    File name, relative to the directory handle. The file name is in Unicode format and is not null-terminated.

Requirements

Header

winnt.h

See Also

Reference

File I/O Structures
CeGetFileNotificationInfo