Reads data from the header of the device's PCI configuration space into the supplied PciConfig structure.
Language
|
Description
|
C/C++
|
BOOL GetPciHeader( HANDLE hPci, PCI_COMMON_CONFIG * PciConfig, USHORT wOffset, USHORT wBytes );
|
Delphi
|
function GetPciHeader ( hPci: THandle; var PciConfig: PCI_COMMON_CONFIG; wOffset: Word; wBytes: Word ): BOOL; stdcall;
|
VB
|
Function GetPciHeader ( ByVal hPci As Long, ByRef PciConfig as PCI_COMMON_CONFIG, ByVal wOffset As Integer, ByVal wBytes As Integer ) As Bool
|
Parameters:
| hPci - the handle returned by a successful call to OpenRapidPci
|
| wOffset - offset in PCI header, in bytes.
|
| wBytes - number of bytes to read.
|
Return Value :
TRUE, if the device exists or FALSE if not.
See also: SetPciHeader
|