各位大侠:
    我采用外部硬件中断,触发IRQ10,请问在Delphi中如果调用相关的中断服务函数,我需要在该中断服务函数中嵌套相关程序,控制上位机的动作!
    紧急求助,在线等待!
    谢谢

解决方案 »

  1.   

    http://www.xfocus.net/articles/200309/618.html
    这个对你有帮助,看看吧
      

  2.   

    The DeviceIoControl function sends a control code directly to a specified device driver, causing the corresponding device to perform the corresponding operation. BOOL DeviceIoControl(
      HANDLE hDevice,              // handle to device
      DWORD dwIoControlCode,       // operation
      LPVOID lpInBuffer,           // input data buffer
      DWORD nInBufferSize,         // size of input data buffer
      LPVOID lpOutBuffer,          // output data buffer
      DWORD nOutBufferSize,        // size of output data buffer
      LPDWORD lpBytesReturned,     // byte count
      LPOVERLAPPED lpOverlapped    // overlapped information
    );