百度空间 | 百度首页 
 
查看文章
 
各种语言及编译环境下使用winio的详细步骤!
2009-07-01 23:41

终于被我找到了      开始自由的读写端口吧

------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------

Using WinIo in a Visual C++ application

In order to use WinIo in a Visual C++ application, you should take the following steps:

  1. Place winio.dll, winio.vxd and winio.sys in the directory where your application's executable file resides.
  2. 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...".
  3. Add the #include "winio.h" statement to your source file.
  4. Call InitializeWinIo.
  5. Call the library's functions to access I/O ports and physical memory.
  6. Call ShutdownWinIo.

=================================================================================

Using WinIo in a C++ Builder application

In order to use WinIo in a C++ Builder application, you should take the following steps:

  1. Place winio.dll, winio.vxd and winio.sys in the directory where your application's executable file resides.
  2. Create a winio.lib file by running the IMPLIB utility that is bundled with C++ Builder.
  3. Add the generated winio.lib to your project file.
  4. Remove the WINIO_API constant from the function declarations in winio.h.
  5. Add the "#include "winio.h" statement to your source file.
  6. Call InitializeWinIo.
  7. Call the library's functions to access I/O ports and physical memory.
  8. Call ShutdownWinIo.

================================================================================

Using WinIo in a Visual Basic application

In order to use WinIo in a Visual Basic application, you should take the following steps:

  1. Place winio.dll, winio.vxd and winio.sys in the directory where your application's executable file resides.
  2. Add winio.bas to your project file.
  3. Call InitializeWinIo.
  4. Call the library's functions to access I/O ports and physical memory.
  5. Call ShutdownWinIo.

================================================================================

Using WinIo from a non-administrative account

WinIo can now be used from non-administrative accounts under Windows NT/2000/XP. In order to support this configuration, the WinIo driver (winio.sys) must be first installed on the system from an administrative account using the InstallWinIoDriver function, which is provided by the library. Following installation, the driver will load automatically whenever Windows starts. An application will then be able to use the library's functions to access I/O ports and physical memory.

You should take the following steps in order to use WinIo from a non-administrative account:

  1. Place winio.dll, winio.vxd and winio.sys in the directory where your application resides.
  2. Log on as an administrator.
  3. Call InstallWinIoDriver with the first parameter set to the path of the winio.sys file (e.g. c:\myapp\winio.sys).
  4. Reboot the system.
  5. Log on as a regular user.
  6. You should now be able to use WinIo in the same way as when using the library from an administrative account.
  7. When WinIo is no longer required, call RemoveWinIoDriver to remove the WinIo driver from the system. This must be performed from an administrative account.

类别:默认分类 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu