Shell32SHChangeNotify(SHChangeNotifyEventID, SHChangeNotifyFlags, String, String) Method

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.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true, SetLastError = true)]
public static void SHChangeNotify(
	SHChangeNotifyEventID eventId,
	SHChangeNotifyFlags flags,
	string item1,
	string item2
)

Parameters

eventId  SHChangeNotifyEventID
Describes the event that has occurred. Typically, only one event is specified at a time.

If more than one event is specified, the values contained in the item1 and item2 parameters must be the same, respectively, for all specified events.

flags  SHChangeNotifyFlags
Flags that, when combined bitwise with SHCNF_TYPE, indicate the meaning of the dwItem1 and item2 parameters.
item1  String
Optional. First event-dependent value.
item2  String
Optional. Second event-dependent value.

Remarks

See Also