次の方法で共有


XXX_Init (NDIS) (Windows CE 5.0)

Send Feedback

When an NDIS Protocol Driver is loaded, either during initialization or through a device call, the driver-supplied function xxx_Init (Services.exe) is called.

DWORDXXX_Init(  DWORDdwContext);

Parameters

  • dwContext
    [in] Pointer to a string containing the registry path to the active key for the stream interface driver.

Return Values

Returns a handle to the device context created, or 0 if unsuccessful.

Remarks

The XXX_Init function of every type of NDIS protocol driver must call NdisRegisterProtocol to register the driver's ProtocolXxx entry points with the NDIS library. All types of NDIS protocols should register fully functional ProtocolBindAdapter and ProtocolUnbindAdapter functions to support plug and play. In general, a XXX_Init function should call NdisRegisterProtocol just before it.

If an attempt to allocate resources that the driver needs to carry out network I/O operations fails, XXX_Init should release all resources it already allocated before it returns 0.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.
Link Library: Ndislib.lib.

See Also

ActivateDevice | RegisterDevice | xxx_Init (Services.exe) | MiniportInitialize | NdisIMRegisterLayeredMiniport | NdisMInitializeWrapper | NdisRegisterProtocol | ProtocolBindAdapter | ProtocolUnbindAdapter

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.