Update NotifyInfoAction and NotifyInfoFilter enum constants for more readability.

This commit is contained in:
Alberto Alonso 2020-11-26 15:00:03 +02:00
parent 21a636aaae
commit 2f1a5b98e2

View File

@ -340,42 +340,42 @@ namespace Fsp.Interop
/// <summary> /// <summary>
/// Enumeration of all the possible values for NotifyInfo.Action /// Enumeration of all the possible values for NotifyInfo.Action
/// </summary> /// </summary>
public enum NotifyInfoAction : UInt32 public enum NotifyInfoAction : UInt32
{ {
FileActionAdded = 1, Added = 1,
FileActionRemoved = 2, Removed = 2,
FileActionModified = 3, Modified = 3,
FileActionRenamedOldName = 4, RenamedOldName = 4,
FileActionRenamedNewName = 5, RenamedNewName = 5,
FileActionAddedStream = 6, AddedStream = 6,
FileActionRemovedStream = 7, RemovedStream = 7,
FileActionModifiedStream = 8, ModifiedStream = 8,
FileActionRemovedByDelete = 9, RemovedByDelete = 9,
FileActionIdNotTunnelled = 10, IdNotTunnelled = 10,
FileActionTunnelledIdCollision = 11, TunnelledIdCollision = 11,
} }
/// <summary> /// <summary>
/// Enumeration of all the possible values for NotifyInfo.Filter /// Enumeration of all the possible values for NotifyInfo.Filter
/// </summary> /// </summary>
[Flags] [Flags]
public enum NotifyInfoFilter : UInt32 public enum NotifyInfoFilter : UInt32
{ {
FileNotifyNone = 0x00000, None = 0x00000,
FileNotifyChangeFileName = 0x00001, ChangeFileName = 0x00001,
FileNotifyChangeDirName = 0x00002, ChangeDirName = 0x00002,
FileNotifyChangeName = FileNotifyChangeFileName | FileNotifyChangeDirName, ChangeName = ChangeFileName | ChangeDirName,
FileNotifyChangeAttributes = 0x00004, ChangeAttributes = 0x00004,
FileNotifyChangeSize = 0x00008, ChangeSize = 0x00008,
FileNotifyChangeLastWrite = 0x00010, ChangeLastWrite = 0x00010,
FileNotifyChangeLastAccess = 0x00020, ChangeLastAccess = 0x00020,
FileNotifyChangeCreation = 0x00040, ChangeCreation = 0x00040,
FileNotifyChangeEa = 0x00080, ChangeEa = 0x00080,
FileNotifyChangeSecurity = 0x00100, ChangeSecurity = 0x00100,
FileNotifyChangeStreamName = 0x00200, ChangeStreamName = 0x00200,
FileNotifyChangeStreamSize = 0x00400, ChangeStreamSize = 0x00400,
FileNotifyChangeStreamWrite = 0x00800, ChangeStreamWrite = 0x00800,
} }
/// <summary> /// <summary>