Opens
the RapidPci.sys kernel mode WDM device driver under Windows 2000/XP,
providing direct access to the PCI hardware.
Language
|
Description
|
C/C++
|
HANDLE OpenRapidPci ( ULONG DeviceInstance )
|
Delphi
|
function OpenRapidPci ( DeviceInstance : Longword) : THandle; stdcall
|
VB
|
Function OpenRapidPci ( ByVal DeviceInstance As Long) As Long
|
Parameters:
DeviceInstance - PCI device instance.
Return Value:
The RapidPci handle value or NULL if fails. Keep this handle opened all time when you are working with RapidPci functions and close by CloseRapidPci() at end of application.
Comments:
If the driver was successfully opened, the IsRapidPciOpened() returns True; if the function fails, the IsRapidPciOpened() returns False.
With RapidPci you can support as many PCI devices as you want. To select the device you need change DriverInstance value from 0 up to maximal number of PCI device installed with RapidPci driver. For the first application use
hPci = OpenRapidPci(0);
For second:
hPci = OpenRapidPci(1);
and so on.
See also: CloseRapidPci IsRapidPciOpened
|