NdisMDirectOidRequestComplete function

Miniport drivers call the NdisMDirectOidRequestComplete function to return the final status of a direct OID request for which the driver's MiniportDirectOidRequest function returned NDIS_STATUS_PENDING.

Syntax


VOID NdisMDirectOidRequestComplete(
  _In_ NDIS_HANDLE       MiniportAdapterHandle,
  _In_ PNDIS_OID_REQUEST OidRequest,
  _In_ NDIS_STATUS       Status
);

Parameters

MiniportAdapterHandle [in]

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

OidRequest [in]

A pointer to a buffer that is formatted as an NDIS_OID_REQUEST structure. The miniport driver obtained this pointer as an input parameter to its MiniportDirectOidRequest function.

Status [in]

The final status of the request operation: NDIS_STATUS_SUCCESS, NDIS_STATUS_REQUEST_ABORTED, or any driver-determined NDIS_STATUS_Xxxexcept NDIS_STATUS_PENDING. For more information about OID status values, see MiniportDirectOidRequest.

Return value

None

Remarks

A miniport driver that returns NDIS_STATUS_PENDING from its MiniportDirectOidRequest function must call NdisMDirectOidRequestComplete after the miniport driver has finished the request operation.

If an overlying driver originated the direct OID request, NDIS calls the request complete function (see ProtocolDirectOidRequestComplete and FilterDirectOidRequestComplete) of the overlying that originated the request.

Requirements

Target platform

Universal

Version

Supported in NDIS 6.1 and later.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

<= DISPATCH_LEVEL

See also

FilterDirectOidRequestComplete
MiniportDirectOidRequest
MiniportInitializeEx
NDIS_OID_REQUEST
ProtocolDirectOidRequestComplete

 

 

Send comments about this topic to Microsoft

Show: