次の方法で共有


MDDAllocDataWrapper (Compact 2013)

3/26/2014

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 Compact 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

See Also

Reference

Remote NDIS Functions
DATA_WRAPPER
MDDFreeDataWrapper

Other Resources

Kernel Independent Transport Layer
LocalAlloc