VOID
NdisMInitializeWrapper(
OUT PNDIS_HANDLE NdisWrapperHandle,
IN PVOID SystemSpecific1,
IN PVOID SystemSpecific2,
IN PVOID SystemSpecific3
);
NdisMInitializeWrapper notifies NDIS that a new miniport is initializing.
For Windows NT drivers, this is a pointer to an opaque driver object input to
the miniport’s DriverEntry function.
For Windows NT drivers, this is a pointer to an opaque registry path input to
the miniport’s DriverEntry function.
For Windows NT drivers, this pointer should be set to NULL when the miniport calls NdisMInitializeWrapper.
A NIC driver or intermediate driver must call NdisMInitializeWrapper before it calls any other NdisXxx function. Usually, this call is the initial action of any NIC driver’s DriverEntry function, which calls NdisMRegisterMiniport or NdisIMRegisterLayeredMiniport with the returned NdisWrapperHandle next. NDIS intermediate drivers also must call NdisMIntializeWrapper from the DriverEntry function and, then, call NdisMRegisterMiniport or NdisIMRegisterLayeredMiniport with the returned NdisWrapperHandle.
Such a driver’s subsequent calls to NdisXxx initialization and configuration functions must pass the NdisWrapperHandle as a parameter. Consequently, it is an input parameter to the MiniportInitialize function.
Callers of NdisMInitializeWrapper run at IRQL PASSIVE_LEVEL.
DriverEntry of NDIS Miniport Drivers, MiniportInitialize, NdisIMRegisterLayeredMiniport, NdisMRegisterMiniport, NdisTerminateWrapper