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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Sub SHChangeNotify (
eventId As SHChangeNotifyEventID,
flags As SHChangeNotifyFlags,
item1 As String,
item2 As String
)
Dim eventId As SHChangeNotifyEventID
Dim flags As SHChangeNotifyFlags
Dim item1 As String
Dim item2 As String
Shell32.SHChangeNotify(eventId, flags,
item1, item2)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static void SHChangeNotify(
SHChangeNotifyEventID eventId,
SHChangeNotifyFlags flags,
String^ item1,
String^ item2
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member SHChangeNotify :
eventId : SHChangeNotifyEventID *
flags : SHChangeNotifyFlags *
item1 : string *
item2 : string -> unit
No code example is currently available or this language may not be supported.
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.