Note NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.
NdisReadPciSlotInformation obtains bus-specific PCI configuration information from the PCI configuration space for a device.
ULONG NdisReadPciSlotInformation( _In_ NDIS_HANDLE NdisAdapterHandle, _In_ ULONG SlotNumber, _In_ ULONG Offset, _Out_ PVOID Buffer, _In_ ULONG Length );
Specifies the MiniportAdapterHandle passed to MiniportInitialize and to most other MiniportXxx functions.
Reserved. NDIS ignores this parameter.
Specifies the byte offset within the PCI configuration space at which to begin transferring the configuration information.
Pointer to a caller-allocated buffer in which to return the requested configuration information.
Specifies the size in bytes of the buffer at Buffer and, therefore, how many bytes of configuration information to return.
NdisReadPciSlotInformation returns how many bytes of configuration information it returned at Buffer.
Miniport drivers call this function from their MiniportInitialize functions. When a driver has consumed the configuration information, it is responsible for releasing the memory at Buffer with NdisFreeMemory.
Callers of NdisReadPciSlotInformation must run at IRQL <= DISPATCH_LEVEL. Usually, callers are running at IRQL = PASSIVE_LEVEL.
Not supported for NDIS 6.0 drivers in Windows Vista. Use NdisMGetBusDatainstead. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP.
|Ndis.h (include Ndis.h)|
<= DISPATCH_LEVEL (See Remarks section)