SHChangeNotifyEventID Enumeration

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum SHChangeNotifyEventID

Remarks

Members

ItemRenamed 1 The name of a nonfolder item has changed.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the previous PIDL or name of the item. dwItem2 contains the new PIDL or name of the item.

ItemCreated 2 A non-folder item has been created.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the item that was created. dwItem2 is not used and should be Zero.

ItemDeleted 4 A nonfolder item has been deleted.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the item that was deleted. dwItem2 is not used and should be Zero.

DirectoryCreated 8 A folder has been created.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the folder that was created. dwItem2 is not used and should be Zero.

DirectoryDeleted 16 A folder has been removed.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the folder that was removed. dwItem2 is not used and should be Zero.

MediaInserted 32 Storage media has been inserted into a drive.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the root of the drive that contains the new media. dwItem2 is not used and should be Zero.

MediaRemoved 64 Storage media has been removed from a drive.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the root of the drive from which the media was removed. dwItem2 is not used and should be Zero.

DriveRemoved 128 A drive has been removed.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the root of the drive that was removed. dwItem2 is not used and should be Zero.

DriveAdded 256 A drive has been added.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the root of the drive that was added. dwItem2 is not used and should be Zero.

NetShared 512 A folder on the local computer is being shared via the network.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the folder that is being shared. dwItem2 is not used and should be Zero.

NetUnshared 1,024 A folder on the local computer is no longer being shared via the network.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the folder that is no longer being shared. dwItem2 is not used and should be Zero.

ItemAttributesChanged 2,048 The attributes of an item or folder have changed.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the item or folder that has changed. dwItem2 is not used and should be Zero.

UpdateDirectory 4,096 The contents of an existing folder have changed but the folder still exists and has not been renamed.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the folder that has changed. dwItem2 is not used and should be Zero.

If a folder has been created, deleted or renamed use DirectoryCreated, or DirectoryRenamed respectively instead.

ServerDisconnected 16,384 The computer has disconnected from a server.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the server from which the computer was disconnected. dwItem2 is not used and should be Zero.

UpdateImage 32,768 An image in the system image list has changed.

Dword must be specified in uFlags.

DriveAddedShell 65,536 A drive has been added and the Shell should create a new window for the drive.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the root of the drive that was added. dwItem2 is not used and should be Zero.

DirectoryRenamed 131,072 The name of a folder has changed.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the previous pointer to an item identifier list (PIDL) or name of the folder. dwItem2 contains the new PIDL or name of the folder.

FreespaceChanged 262,144 The amount of free space on a drive has changed.

ItemIdList or PathA must be specified in uFlags.

dwItem1 contains the root of the drive on which the free space changed. dwItem2 is not used and should be Zero.

FileAssocChanged 134,217,728 A file type association has changed.

ItemIdList must be specified in the uFlags parameter.

dwItem1 and dwItem2 are not used and must be set as Zero.

AllEvents 2,147,483,647 All events have occurred.

See Also