NdisMSetBusData - NtDoc

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

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

NtDoc

No description available.

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

NdisMSetBusData function

Description

NDIS drivers call the NdisMSetBusData function to write to 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 written. 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, to which data is written.

Buffer [in]

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

Length [in]

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.

See also

IRP_MN_READ_CONFIG

MiniportInitializeEx

NdisMGetBusData