public static void InstallPnpEventHandler(ImaqdxSessionHandle session, ImaqdxPnpEvent pnpEvent, ImaqdxPnpEventHandler callback) { Debug.Assert(session != null, "The session parameter cannot be null."); Debug.Assert(!session.IsInvalid, "The session parameter must be a valid handle."); Debug.Assert(callback != null, "The callback parameter cannot be null."); int status = NiImaqdxDll.IMAQdxRegisterPnpEvent(session, pnpEvent, callback, IntPtr.Zero); ExceptionBuilder.CheckErrorAndThrow(status); }
public static extern int IMAQdxRegisterPnpEvent(ImaqdxSessionHandle id, ImaqdxPnpEvent pnpEvent, ImaqdxPnpEventHandler callbackFunction, IntPtr callbackData);