MDDAllocDataWrapper (Windows Embedded CE 6.0)
1/6/2010
This function allocates a DATA_WRAPPER structure from the heap. The memory allocated should be returned in MDDFreeDataWrapper.
Syntax
PDATA_WRAPPER MDDAllocDataWrapper(void);
Parameters
None.
Return Value
A pointer to DATA_WRAPPER structure indicates success. NULL indicates failure.
Remarks
Windows Embedded 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
Header | rndismini.h |
Windows Embedded CE | Windows CE .NET 4.0 and later |
See Also
Reference
Remote NDIS Functions
DATA_WRAPPER
MDDFreeDataWrapper