Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
HChangeNotifyFlags (shell32)
 
.
Summary
Flags that indicate the meaning of the dwItem1 and dwItem2 parameters. The uFlags parameter must be one of the following values.

C# Signature:

    #region public enum HChangeNotifyFlags
    /// <summary>
    /// Flags that indicate the meaning of the <i>dwItem1</i> and <i>dwItem2</i> parameters.
    /// The uFlags parameter must be one of the following values.
    /// </summary>
    [Flags]
    public enum HChangeNotifyFlags
    {
        /// <summary>
        /// The <i>dwItem1</i> and <i>dwItem2</i> parameters are DWORD values.
        /// </summary>
        SHCNF_DWORD = 0x0003,
        /// <summary>
        /// <i>dwItem1</i> and <i>dwItem2</i> are the addresses of ITEMIDLIST structures that
        /// represent the item(s) affected by the change.
        /// Each ITEMIDLIST must be relative to the desktop folder.
        /// </summary>
        SHCNF_IDLIST = 0x0000,
        /// <summary>
        /// <i>dwItem1</i> and <i>dwItem2</i> are the addresses of null-terminated strings of
        /// maximum length MAX_PATH that contain the full path names
        /// of the items affected by the change.
        /// </summary>
        SHCNF_PATHA = 0x0001,
        /// <summary>
        /// <i>dwItem1</i> and <i>dwItem2</i> are the addresses of null-terminated strings of
        /// maximum length MAX_PATH that contain the full path names
        /// of the items affected by the change.
        /// </summary>
        SHCNF_PATHW = 0x0005,
        /// <summary>
        /// <i>dwItem1</i> and <i>dwItem2</i> are the addresses of null-terminated strings that
        /// represent the friendly names of the printer(s) affected by the change.
        /// </summary>
        SHCNF_PRINTERA = 0x0002,
        /// <summary>
        /// <i>dwItem1</i> and <i>dwItem2</i> are the addresses of null-terminated strings that
        /// represent the friendly names of the printer(s) affected by the change.
        /// </summary>
        SHCNF_PRINTERW = 0x0006,
        /// <summary>
        /// The function should not return until the notification
        /// has been delivered to all affected components.
        /// As this flag modifies other data-type flags, it cannot by used by itself.
        /// </summary>
        SHCNF_FLUSH = 0x1000,
        /// <summary>
        /// The function should begin delivering notifications to all affected components
        /// but should return as soon as the notification process has begun.
        /// As this flag modifies other data-type flags, it cannot by used by itself.
        /// </summary>
        SHCNF_FLUSHNOWAIT = 0x2000
    }
    #endregion // enum HChangeNotifyFlags

VB Signature:

    <Flags()> _
    Public Enum HChangeNotifyFlags
    ' <summary>
    ' The <i>dwItem1</i> and <i>dwItem2</i> parameters are DWORD values.
    ' </summary>
    SHCNF_DWORD = &H3
    ' <summary>
    ' <i>dwItem1</i> and <i>dwItem2</i> are the addresses of ITEMIDLIST structures that
    ' represent the item(s) affected by the change.
    ' Each ITEMIDLIST must be relative to the desktop folder.
    ' </summary>
    SHCNF_IDLIST = &H0
    ' <summary>
    ' <i>dwItem1</i> and <i>dwItem2</i> are the addresses of null-terminated strings of
    ' maximum length MAX_PATH that contain the full path names
    ' of the items affected by the change.
    ' </summary>
    SHCNF_PATHA = &H1
    ' <summary>
    ' <i>dwItem1</i> and <i>dwItem2</i> are the addresses of null-terminated strings of
    ' maximum length MAX_PATH that contain the full path names
    ' of the items affected by the change.
    ' </summary>
    SHCNF_PATHW = &H5
    ' <summary>
    ' <i>dwItem1</i> and <i>dwItem2</i> are the addresses of null-terminated strings that
    ' represent the friendly names of the printer(s) affected by the change.
    ' </summary>
    SHCNF_PRINTERA = &H2
    ' <summary>
    ' <i>dwItem1</i> and <i>dwItem2</i> are the addresses of null-terminated strings that
    ' represent the friendly names of the printer(s) affected by the change.
    ' </summary>
    SHCNF_PRINTERW = &H6
    ' <summary>
    ' The function should not return until the notification
    ' has been delivered to all affected components.
    ' As this flag modifies other data-type flags it cannot by used by itself.
    ' </summary>
    SHCNF_FLUSH = &H1000
    ' <summary>
    ' The function should begin delivering notifications to all affected components
    ' but should return as soon as the notification process has begun.
    ' As this flag modifies other data-type flags it cannot by used by itself.
    ' </summary>
    SHCNF_FLUSHNOWAIT = &H2000
    End Enum

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes: See SHChangeNotify, HChangeNotifyEventID

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions