Previous Next

NdisMQueryAdapterResources

NdisMQueryAdapterResources returns a list of hardware resources for a NIC.

VOID
  NdisMQueryAdapterResources(
    OUT PNDIS_STATUS  Status,
    IN NDIS_HANDLE  WrapperConfigurationContext,
    OUT PNDIS_RESOURCE_LIST  ResourceList,
    IN OUT PUINT  BufferSize
    ); 

Parameters

Status
Pointer to a caller-supplied variable in which this function returns the status of the call.
WrapperConfigurationContext
Specifies the handle input to MiniportInitialize.
ResourceList
Pointer to a caller-allocated buffer in which this function returns a set of hardware resources for the caller’s NIC.
BufferSize
Pointer to a variable that specifies the size in bytes of the caller-allocated buffer on input and the number of bytes of information returned by this call.

Headers

Declared in Ndis.h. Include Ndis.h.

Comments

To get bus-configuration hardware configuration parameters for their NICs, drivers can call NdisMQueryAdapterResources from their MiniportInitialize functions.

Callers of NdisMQueryAdapterResources run at IRQL = PASSIVE_LEVEL.

See Also

MiniportInitialize, NdisOpenConfiguration, NdisReadConfiguration, NdisWriteConfiguration