Compartilhar via


NdisMQueryInformationComplete function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

NdisMQueryInformationComplete indicates that a prior call to MiniportQueryInformation, which returned NDIS_STATUS_PENDING, has completed.

Syntax

VOID NdisMQueryInformationComplete(
  _In_ NDIS_HANDLE MiniportAdapterHandle,
  _In_ NDIS_STATUS Status
);

Parameters

  • MiniportAdapterHandle [in]
    Specifies the handle originally input to MiniportInitialize.

  • Status [in]
    Specifies the return value for the completed request originally passed to MiniportQueryInformation.

Return value

None

Remarks

A call to NdisMQueryInformationComplete causes NDIS to return the completed query request to the ProtocolRequestComplete function of the driver that originally called NdisRequest.

Before it calls NdisMQueryInformationComplete, a miniport driver should supply the OID-specific information originally requested from its MiniportQueryInformation function. That is, the driver should set the appropriate values at BytesWritten and/or BytesNeeded and provide as much as possible of the requested data in the buffer at InformationBuffer.

For more information about system-defined OIDs, see NDIS Object Identifiers.

A miniport driver must release any spin lock that it is holding before calling NdisMQueryInformationComplete.

Requirements

Target platform

Universal

Version

Not supported for NDIS 6.0 drivers in Windows Vista. Use NdisMOidRequestCompleteinstead. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

DISPATCH_LEVEL

See also

MiniportInitialize

MiniportQueryInformation

NDIS_REQUEST

NdisRequest

ProtocolRequestComplete

 

 

Send comments about this topic to Microsoft