AdvApi32RegNotifyChangeKeyValue(IntPtr, Boolean, RegNotifyChangeFilter, IntPtr, Boolean) Method
Notifies the caller about changes to the attributes or contents of a specified registry key.
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("AdvApi32.dll", SetLastError = true)]
public static Win32ErrorCode RegNotifyChangeKeyValue(
IntPtr hKey,
bool watchSubtree,
RegNotifyChangeFilter notifyFilter,
IntPtr hEvent,
bool asynchronous
)
<DllImportAttribute("AdvApi32.dll", SetLastError := true>]
Public Shared Function RegNotifyChangeKeyValue (
hKey As IntPtr,
watchSubtree As Boolean,
notifyFilter As RegNotifyChangeFilter,
hEvent As IntPtr,
asynchronous As Boolean
) As Win32ErrorCode
Dim hKey As IntPtr
Dim watchSubtree As Boolean
Dim notifyFilter As RegNotifyChangeFilter
Dim hEvent As IntPtr
Dim asynchronous As Boolean
Dim returnValue As Win32ErrorCode
returnValue = AdvApi32.RegNotifyChangeKeyValue(hKey,
watchSubtree, notifyFilter, hEvent,
asynchronous)
public:
[DllImportAttribute(L"AdvApi32.dll", SetLastError = true)]
static Win32ErrorCode RegNotifyChangeKeyValue(
IntPtr hKey,
bool watchSubtree,
RegNotifyChangeFilter notifyFilter,
IntPtr hEvent,
bool asynchronous
)
[<DllImportAttribute("AdvApi32.dll", SetLastError = true)>]
static member RegNotifyChangeKeyValue :
hKey : IntPtr *
watchSubtree : bool *
notifyFilter : RegNotifyChangeFilter *
hEvent : IntPtr *
asynchronous : bool -> Win32ErrorCode
No code example is currently available or this language may not be supported.
- hKey IntPtr
-
A handle to an open registry key.
This handle is returned by the RegCreateKeyEx or RegOpenKeyEx(SafeRegistryHandle, String, UInt32, Int32, IntPtr) function.
- watchSubtree Boolean
-
If this parameter is , the function reports changes in the specified key and its subkeys.
If the parameter is , the function reports changes only in the specified key.
- notifyFilter RegNotifyChangeFilter
-
A value that indicates the changes that should be reported.
- hEvent IntPtr
-
A handle to an event.
If the asynchronous parameter is ,
the function returns immediately and changes are reported by signaling this event.
If asynchronous is , hEvent is ignored.
- asynchronous Boolean
-
If this parameter is ,
the function returns immediately and reports changes by signaling the specified event.
If this parameter is , the function does not return until a change has occurred.
If hEvent does not specify a valid event,
the asynchronous parameter cannot be .
Win32ErrorCode
If the function succeeds, the return value is
ERROR_SUCCESS.
If the function fails, the return value is other
Win32ErrorCode error code.
To get extended error information, call
GetLastWin32Error.