Share via


NdisMGetBusData (Compact 2013)

3/26/2014

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

Syntax

ULONG
  NdisMGetBusData(
    IN NDIS_HANDLE  MiniportAdapterHandle,
    IN ULONG  WhichSpace,
    IN ULONG  Offset,
    IN PVOID  Buffer,
    IN ULONG  Length
    ); 

Parameters

  • MiniportAdapterHandle
    The miniport adapter handle that NDIS passed to the MiniportAdapterHandle parameter of the MiniportInitializeEx function.
  • WhichSpace
    The type of bus data to be read. For more information, see the discussion of the WhichSpace parameter on the reference page for IRP_MN_READ_CONFIG.
  • Offset
    The byte offset in the configuration space, specified by WhichSpace, from which data is read.
  • Buffer
    A pointer to a buffer that receives the data that is read from the bus. Must be at least as large as Length.
  • Length
    The length, in bytes, of the data to read.

Return Value

NdisMGetBusData returns the number of bytes that are read.

Requirements

Header

ndis.h

See Also

Reference

NDIS Hardware Configuration Interface
MiniportInitializeEx
NdisMSetBusData