다음을 통해 공유


MDDAllocMem (Windows Embedded CE 6.0)

1/6/2010

This function allocates the number of bytes needed for one RNDIS packet transfer.

Syntax

PBYTE MDDAllocMem(void);

Parameters

None.

Return Value

A pointer to dwMaxRx number of bytes in a RNDIS_PDD_CHARACTERISTICS structure that indicates success. NULL indicates failure.

Remarks

During initialization, the MDD initializes PDD via the PDDInit function. On successful initialization, the PDD returns the RNDIS_PDD_CHARACTERISTICS structure with dwMaxRx indicating the maximum transfer size PDD can receive from the RNDIS host.

Generally dwMaxRx should be the same value that PDD returns in PDD_Get for REQ_ID_DEVICE_MAX_RX request ID.

Requirements

Header rndismini.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Remote NDIS Functions
MDDAllocDataWrapper
RNDIS_PDD_CHARACTERISTICS