Bewerken

Delen via


NdisIMAssociateMiniport function (ndis.h)

The NdisIMAssociateMiniport function informs NDIS that the specified lower and upper interfaces for miniport and protocol drivers respectively belong to the same intermediate driver.

Syntax

void NdisIMAssociateMiniport(
  [in] NDIS_HANDLE DriverHandle,
  [in] NDIS_HANDLE ProtocolHandle
);

Parameters

[in] DriverHandle

The handle to the miniport driver interface that the NdisMRegisterMiniportDriver function returns.

[in] ProtocolHandle

The handle to the protocol interface that the NdisRegisterProtocolDriver function returns.

Return value

None

Remarks

Any NDIS intermediate driver that exports both MiniportXxx and ProtocolXxx functions calls NdisIMAssociateMiniport to inform the NDIS library about its miniport upper edge and its protocol lower edge. Such an intermediate driver calls NdisIMAssociateMiniport during its DriverEntry routine. For more information about DriverEntry, see DriverEntry of NDIS Intermediate Drivers.

Requirements

Requirement Value
Minimum supported client Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisIMAssociateMiniport (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisIMAssociateMiniport (NDIS 5.1)) in Windows XP.
Target Platform Desktop
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL PASSIVE_LEVEL
DDI compliance rules Irql_IM_Function(ndis)

See also

DriverEntry

NdisMRegisterMiniportDriver

NdisRegisterProtocolDriver