Ejemplo n.º 1
0
 public static extern int JetRegisterCallback(
     IntPtr sesid, IntPtr tableid, uint cbtyp, NATIVE_CALLBACK callback, IntPtr pvContext, out IntPtr pCallbackId);
Ejemplo n.º 2
0
 /// <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");
 }
Ejemplo n.º 3
0
 public static extern int JetRegisterCallback(
     IntPtr sesid, IntPtr tableid, uint cbtyp, NATIVE_CALLBACK callback, IntPtr pvContext, out IntPtr pCallbackId);
Ejemplo n.º 4
0
 /// <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");
 }