各种语言及编译环境下使用winio的详细步骤

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.

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

Using WinIo in a C++ Builder application
In order to use WinIo in a C++ Builder 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.
Create a winio.lib file by running the IMPLIB utility that is bundled with C++ Builder.
Add the generated winio.lib to your project file.
Remove the WINIO_API constant from the function declarations in winio.h.
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.

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

Using WinIo in a Visual Basic application
In order to use WinIo in a Visual Basic 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.bas to your project file.
Call InitializeWinIo.
Call the library's functions to access I/O ports and physical memory.
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:

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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值