MDDAllocDataWrapper (Windows CE 5.0)

Send Feedback

This function allocates a DATA_WRAPPER structure from the heap. The memory allocated should be returned in MDDFreeDataWrapper.

PDATA_WRAPPER MDDAllocDataWrapper(void);

Parameters

None.

Return Values

A pointer to DATA_WRAPPER structure indicates success. NULL indicates failure.

Remarks

Windows CE supports the Remote NDIS Kernel Independent Transport Layer (RNDIS KITL). This function provides a mechanism for the PDD to allocate a DATA_WRAPPER structure that is independent of whether the PDD is utilized in the RNDIS KITL or RNDISMINI modules.

RNDIS KITL runs in kernel mode and may not support memory allocation APIs such as LocalAlloc. Hence, if your PDD consistently uses MDDAllocDataWrapper instead of LocalAlloc or other memory allocation mechanism, the same PDD code base can be used in both environments (RNDIS KITL and RNDISMINI).

Note   It is not possible to run both RNDIS KITL and RNDISMINI simultaneously.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Rndismini.h.

See Also

Kernel Independent Transport Layer | DATA_WRAPPER | LocalAlloc | MDDFreeDataWrapper

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.