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.