public static extern int JetRegisterCallback( IntPtr sesid, IntPtr tableid, uint cbtyp, NATIVE_CALLBACK callback, IntPtr pvContext, out IntPtr pCallbackId);
/// <summary> /// Initializes a new instance of the JetCallbackWrapper class. /// </summary> /// <param name="callback"> /// The managed callback to use. /// </param> public JetCallbackWrapper(JET_CALLBACK callback) { this.wrappedCallback = new WeakReference(callback); this.nativeCallback = this.CallbackImpl; Debug.Assert(this.wrappedCallback.IsAlive, "Callback isn't alive"); }
public static extern int JetRegisterCallback( IntPtr sesid, IntPtr tableid, uint cbtyp, NATIVE_CALLBACK callback, IntPtr pvContext, out IntPtr pCallbackId);
/// <summary> /// Initializes a new instance of the JetCallbackWrapper class. /// </summary> /// <param name="callback"> /// The managed callback to use. /// </param> public JetCallbackWrapper(JET_CALLBACK callback) { this.wrappedCallback = new WeakReference(callback); this.nativeCallback = this.CallbackImpl; Debug.Assert(this.wrappedCallback.IsAlive, "Callback isn't alive"); }