NdisMGetBusData - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

ULONG NdisMGetBusData(
        NDIS_HANDLE NdisMiniportHandle,
  [in]  ULONG       WhichSpace,
  [in]  ULONG       Offset,
  [out] PVOID       Buffer,
  [in]  ULONG       Length
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ndis-ndismgetbusdata)

NdisMGetBusData function

Description

NDIS drivers call the NdisMGetBusData function to read the configuration space of a device.

Parameters

NdisMiniportHandle

The miniport adapter handle that NDIS passed to the MiniportAdapterHandle parameter of the MiniportInitializeEx function.

WhichSpace [in]

The type of bus data to be read. For further information, see the discussion of the WhichSpace parameter on the reference page for IRP_MN_READ_CONFIG.

Offset [in]

The byte offset in the configuration space, specified by WhichSpace, from which data is read.

Buffer [out]

A pointer to a buffer that receives the data read from the bus. Must be at least as large as Length .

Length [in]

The length, in bytes, of the data to read.

Return value

NdisMGetBusData returns the number of bytes read.

Remarks

This function replaces the NDIS 5.1 NdisReadPciSlotInformation function.

See also

IRP_MN_READ_CONFIG

MiniportInitializeEx

NdisMSetBusData