Partager via


SHCHANGENOTIFYENTRY (Windows CE 5.0)

Send Feedback

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.
    For Windows Mobile, this member indicates whether notifications are requested for just pszWatchDir or pszWatchDir and all of the related subdirectories.

Windows Mobile Remarks

This structure is defined in the Shlobj.h header file and ceshell.lib DLL.

Requirements

OS Versions: Windows CE .NET 4.2 and later
Header: aygshell.h

Windows Mobile Requirements

Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: shlobj.h
Library: ceshell.lib

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.