Share via


TransportDecode (Windows CE 5.0)

Send Feedback

This function is called to decode a frame received from KITLTRANSPORT and return a pointer to the data portion of the frame.

LPBYTE TransportDecode(LPBYTEpbFrame,PUSHORTpcbData);

Parameters

  • pbFrame
    [in] Pointer to the complete frame.
  • pcbData
    [in, out] Pointer to a variable that stores the length of the data only inside the frame. On entry, this contains the size of the whole frame.

Return Values

If the frame can be decoded, a pointer to the start of the data is returned; otherwise, NULL is returned.

Remarks

The decode function should check if the frame is valid and put the length of the data in pcbData and return the pointer to data.

The function returns NULL if it is not a valid frame.

Assign TransportDecode to the pfnDecode member of KITLTRANSPORT during OEMKitlInit.

Requirements

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

See Also

KITLTRANSPORT | OEMKitlInit

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.