各种语言及编译环境下使用winio的详细步骤
2010-11-01 10:31
585 查看
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.
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.
相关文章推荐
- windows 平台g++、gcc、gdb编译环境搭建及使用示范【详细步骤】
- 在LINUX环境下使用client模板的详细步骤
- CocoaPods 的详细安装步骤,使用方法以及安装过程中出现的各种错误总结
- 使用vs2010和masm32搭建win32汇编语言编程编译环境
- 在ubuntu15.10上编译arm-linux环境使用的log4c步骤
- 从头搭建imx6ull开发环境(uboot、内核编译及烧入、mfgtools详细使用方法)
- 使用开源PPssPP 在android环境中编译步骤
- 【imx6ul】从头搭建imx6ul开发环境(uboot、内核编译及烧入、mfgtools详细使用方法)
- 使用ARM开发详细步骤/关于QT/E安装,编译,以及执行
- vs2005环境下CELayoutEditor源码编译详细步骤
- 从头搭建imx6ul开发环境(uboot、内核编译及烧入、mfgtools详细使用方法)
- windows10上使用Eclipse配置Hadoop开发环境详细步骤+WordCount示例
- Android Studio安装配置、环境搭建详细步骤及基本使用
- 用Kotlin语言写一个简单的Android Demo(有详细步骤和各种解决方法)
- 虚拟打印机开发日志(一):使用x64 WIN7编译环境编译的完整步骤
- Android 开发之Windows环境下Android Studio安装和使用教程(图文详细步骤)
- Android 开发之Windows环境下Android Studio安装和使用教程(图文详细步骤)
- 使用autotools工具用configure、make、make install编译安装linux工程的详细步骤
- 如何Visual Studio环境使用 C++ Boost库,详细步骤
- 汇编语言的集成编译环境RadSAM的安装及使用(转载)