NdisMSetBusData function

NDIS drivers call the NdisMSetBusData function to write to the configuration space of a device.

Syntax

ULONG NdisMSetBusData(
  IN NDIS_HANDLE NdisMiniportHandle,
  IN ULONG       WhichSpace,
  IN ULONG       Offset,
  IN PVOID       Buffer,
  IN ULONG       Length
);

Parameters

NdisMiniportHandle

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

WhichSpace

The type of bus data to be written. For further 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, to which data is written.

Buffer

A pointer to a buffer that contains the data to write to the bus. Must be at least as large as Length .

Length

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

Return Value

NdisMGetBusData returns the number of bytes written.

Remarks

This function replaces the NDIS 5.1 NdisWritePciSlotInformation function.

Requirements

   
Minimum supported client Supported in NDIS 6.0 and later.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL Any level

See Also

IRP_MN_READ_CONFIG

MiniportInitializeEx

NdisMGetBusData