コード例 #1
0
        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);
        }
コード例 #2
0
 public static extern int IMAQdxRegisterPnpEvent(ImaqdxSessionHandle id, ImaqdxPnpEvent pnpEvent, ImaqdxPnpEventHandler callbackFunction, IntPtr callbackData);