public Win32RegistryKeyWatchCallbackFuncWrapper(GLib.Win32RegistryKeyWatchCallbackFunc managed) { this.managed = managed; if (managed != null) { NativeDelegate = new Win32RegistryKeyWatchCallbackFuncNative(NativeCallback); } }
public unsafe bool Watch(bool watch_children, GLib.Win32RegistryKeyWatcherFlags watch_flags, GLib.Win32RegistryKeyWatchCallbackFunc cb) { GLibSharp.Win32RegistryKeyWatchCallbackFuncWrapper cb_wrapper = new GLibSharp.Win32RegistryKeyWatchCallbackFuncWrapper(cb); IntPtr error = IntPtr.Zero; bool raw_ret = g_win32_registry_key_watch(Handle, watch_children, (int)watch_flags, cb_wrapper.NativeDelegate, IntPtr.Zero, out error); bool ret = raw_ret; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }