示例#1
0
 private DiagnosticsNativeMethods.ErrorCode RegisterKeyChangeNotification(SafeRegistryHandle key, bool watchSubtree, DiagnosticsNativeMethods.RegistryNotifications notifyFilter, AutoResetEvent notifyEvent, bool asynchronous)
 {
     return(DiagnosticsNativeMethods.RegNotifyChangeKeyValue(this.registryKey, watchSubtree, notifyFilter, notifyEvent.SafeWaitHandle, asynchronous));
 }
 public static extern DiagnosticsNativeMethods.ErrorCode RegNotifyChangeKeyValue([In] SafeRegistryHandle key, [MarshalAs(UnmanagedType.Bool)][In] bool watchSubtree, [In] DiagnosticsNativeMethods.RegistryNotifications notifyFilter, [In] SafeWaitHandle notifyEvent, [MarshalAs(UnmanagedType.Bool)][In] bool asynchronous);