CeFindFirstRegChange (coredll)
Last changed: -216.15.86.158

.
Summary
This function creates a change notification handle and sets up initial change notification filter conditions. A wait on a notification handle succeeds when a change matching the filter conditions occurs in the specified registry key or subkeys.

C# Signature:

[DllImport("coredll.dll", SetLastError=true)]
static extern TODO CeFindFirstRegChange(TODO);

VB Signature:

<DllImport("coredll.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
Private Shared Function CeFindFirstRegChange(ByVal hKey As IntPtr, <MarshalAs(UnmanagedType.Bool)> ByVal bWatchSubtree As Boolean, ByVal dwNotifyFilter As RegNotifyFilter) As IntPtr
End Function

User-Defined Types:

<Flags()> Public Enum RegNotifyFilter
REG_NOTIFY_CHANGE_NAME = 1      '   Notify the caller if a subkey is added or deleted.
REG_NOTIFY_CHANGE_LAST_SET = 4      '   Notify the caller of changes to a value of the key. This can include adding or deleting a value or changing an existing value.
End Enum

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation