NdisMQueryAdapterResources

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

NdisMQueryAdapterResources either returns a list of hardware resources for a PCMCIA NIC, or it returns NDIS_STATUS_NOT_SUPPORTED.

Parameters

Status

Points to a caller-supplied variable in which this function returns the status of the call. It returns NDIS_STATUS_NOT_SUPPORTED on Windows NT platforms.

WrapperConfigurationContext

Specifies the handle input to MiniportInitialize.

ResourceList

Points to a caller-allocated buffer in which this function returns a list of PCMCIA resources for the caller’s NIC.

BufferSize

Points to a variable that specifies the size in bytes of the caller-allocated buffer on input and the number of bytes of returned information on return from this function.

Comments

To get hardware configuration parameters for PCMCIA NICs, drivers that are binary-compatible across Microsoft operating systems that support Win32 applications can call NdisMQueryAdapterResources from their MiniportInitialize functions.

If NdisMQueryAdapterResources returns NDIS_STATUS_NOT_SUPPORTED, the MiniportInitialize function then gets the configuration parameters for its NIC from the registry with calls to the Ndis..Configuration functions.

Callers of NdisMQueryAdapterResources run at IRQL PASSIVE_LEVEL.

See Also

MiniportInitialize, NdisOpenConfiguration, NdisReadConfiguration, NdisWriteConfiguration