先在网上下一个,里边有帮助的,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.
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.