RegNotifyChangeKeyValue (advapi32)
Last changed: -162.111.235.14

.
Summary
Notifies the caller about changes to the attributes or contents of a specified registry key.

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]
static extern int RegNotifyChangeKeyValue(IntPtr hKey, bool watchSubtree,
   int dwNotifyFilter, IntPtr hEvent, bool fAsynchronous);

VB Signature:

Declare Function RegNotifyChangeKeyValue Lib "advapi32.dll" (hKey As IntPtr, _
   watchSubtree As Boolean, dwNotifyFilter As Integer, hEvent As IntPtr,
   fAsynchronous As Boolean) As Integer

Notes:

Starting with the .NET Framework 2.0, the IntPtr parameters could be defined as SafeHandle instead.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation