FileAssociation/ShellNotification.cs
/// <summary>
/// Notifies the system of an event that an application has performed. An application should use this function if it performs an action that may affect the Shell. 
/// </summary>
/// <param name="wEventId">Describes the event that has occurred. The ShellChangeNotificationEvents enum contains a list of options.</param>
/// <param name="uFlags">Flags that indicate the meaning of the dwItem1 and dwItem2 parameters.</param>
/// <param name="dwItem1">First event-dependent value.</param>
/// <param name="dwItem2">Second event-dependent value.</param>
Notifies the system of an event that an application has performed. An application should use this function if it performs an action that may affect the Shell.
Notifies the system of an event that an application has performed . An application should use this function if it performs an action that may affect the Shell .
[DllImport("shell32.dll")]
      private static extern void SHChangeNotify(
          UInt32 wEventId,
          UInt32 uFlags,
          IntPtr dwItem1,
          IntPtr dwItem2);
[ DllImport ( " " ) ] private static extern void SHChangeNotify ( UInt32 wEventId , UInt32 uFlags , IntPtr dwItem1 , IntPtr dwItem2 ) ;
Notifies the system of an event that an application has performed.
Notifies the system of an event that an application has performed .
wEventId
UInt32
Describes the event that has occurred. The ShellChangeNotificationEvents enum contains a list of options.
Describes the event that has occurred . The ShellChangeNotificationEvents enum contains a list of options .
uFlags
UInt32
Flags that indicate the meaning of the dwItem1 and dwItem2 parameters.
Flags that indicate the meaning of the dwItem1 and dwItem2 parameters .
dwItem1
IntPtr
First event-dependent value.
First event - dependent value .
dwItem2
IntPtr
Second event-dependent value.
Second event - dependent value .