现在有需要对NT端口进行读写,需使用_inp();
谢谢!!

解决方案 »

  1.   

    能介绍下WinIO库吗?以前没接触过,很陌生!!
      

  2.   

    先在网上下一个,里边有帮助的,Using WinIo in a Visual C++ application
    In order to use WinIo in a Visual C++ application, you should take the following steps: Place winio.dll, winio.vxd and winio.sys in the directory where your application's executable file resides. 
    Add winio.lib to your project file by right clicking on the project name in the Visual C++ workview pane and selecting "Add Files to Project...". 
    Add the #include "winio.h" statement to your source file. 
    Call InitializeWinIo. 
    Call the library's functions to access I/O ports and physical memory. 
    Call ShutdownWinIo.