public TXmlConnector() { this.myDelegate = new TXmlConnector.CallBack(this.MyCallBack); this.myDelegateEx = new TXmlConnector.CallBackEx(this.MyCallBackEx); if (Environment.Is64BitProcess) { if (!TXmlConnector.SetCallback64(this.myDelegate)) { throw new Exception("Could not establish a callback function"); } if (!TXmlConnector.SetCallbackEx64(this.myDelegateEx, IntPtr.Zero)) { throw new Exception("Could not establish a callback function"); } } else { if (!TXmlConnector.SetCallback(this.myDelegate)) { throw new Exception("Could not establish a callback function"); } if (!TXmlConnector.SetCallbackEx(this.myDelegateEx, IntPtr.Zero)) { throw new Exception("Could not establish a callback function"); } } TXmlConnector.instance = this; }
public TXmlConnector() { this.myDelegate = new TXmlConnector.CallBack(this.MyCallBack); this.myDelegateEx = new TXmlConnector.CallBackEx(this.MyCallBackEx); if (Environment.Is64BitProcess) { if (!TXmlConnector.SetCallback64(this.myDelegate)) throw new Exception("Could not establish a callback function"); if (!TXmlConnector.SetCallbackEx64(this.myDelegateEx, IntPtr.Zero)) throw new Exception("Could not establish a callback function"); } else { if (!TXmlConnector.SetCallback(this.myDelegate)) throw new Exception("Could not establish a callback function"); if (!TXmlConnector.SetCallbackEx(this.myDelegateEx, IntPtr.Zero)) throw new Exception("Could not establish a callback function"); } TXmlConnector.instance = this; }
private static bool SetCallbackEx64(TXmlConnector.CallBackEx pCallback, IntPtr userData);