TransportDecode
Other versions of this page are also available for the following:
8/27/2008
This function is called to decode a frame received from KITLTRANSPORT and return a pointer to the data portion of the frame.
Syntax
LPBYTE TransportDecode(
LPBYTE pbFrame,
PUSHORT pcbData
);
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 Value
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
Header | kitl.h |
Library | Kitl.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |