SHCHANGENOTIFYENTRY (Compact 2013)

3/28/2014

This structure indicates which events will result in notifications to the subscribing window for a watched directory or directory tree.

Syntax

typedef struct tagSHCHANGENOTIFYENTRY {
  DWORD dwEventMask;
  LPTSTR pszWatchDir;
  BOOL fRecursive;
} SHCHANGENOTIFYENTRY;

Members

  • dwEventMask
    Specifies the events for which a notification should be sent. This member can contain any combination of events shown in the following table.

    Event Name

    Description

    SHCNE_RENAMEITEM

    The name of a non-folder item has changed.

    SHCNE_CREATE

    A non-folder item has been created.

    SHCNE_DELETE

    A non-folder item has been deleted.

    SHCNE_MKDIR

    A folder has been created.

    SHCNE_RMDIR

    A folder has been deleted.

    SHCNE_MEDIAINSERTED

    Storage media has been inserted into a drive.

    SHCNE_MEDIAREMOVED

    Storage media has been removed from a drive.

    SHCNE_DRIVEREMOVED

    Not supported.

    SHCNE_DRIVEADD

    Not supported.

    SHCNE_NETSHARE

    A folder on the local device is being shared on the network.

    SHCNE_NETUNSHARE

    A folder on the local device is no longer being shared on the network.

    SHCNE_ATTRIBUTES

    The attributes of an item or folder have changed.

    SHCNE_UPDATEDIR

    The contents of an existing folder have changed, but the folder was not renamed or deleted.

    SHCNE_UPDATEITEM

    A non-folder item has changed, but was not renamed or deleted.

    SHCNE_SERVERDISCONNECT

    Not supported.

    SHCNE_RENAMEFOLDER

    The name of a folder has changed.

    SHCNE_ALLEVENTS

    Use this to request notification for all events.

  • pszWatchDir
    Fully qualified path to the directory or root for which notifications are requested. Set this member to NULL to request notifications for changes anywhere in the file system. If fRecursive is TRUE, then notifications are requested for pszWatchDir and the related subdirectories.
  • fRecursive
    Not supported.

Requirements

Header

aygshell.h

Library

aygshell.lib

See Also

Reference

Shell Structures