WapGetNextPrimitiveSize
This function gets the packet size of the next packet to read.
HRESULT WapGetNextPrimitiveSize(
const WAP_HANDLE whHandle,
DWORD* const pdwNextPrimitiveSize
);
Parameters
- whHandle
[in] The WAP handle returned by WapOpen. - pdwNextPrimitiveSize
[out] Pointer to the size, in bytes, of the buffer for the next packet to read, via a call to WapRead. All protocol data units (PDUs) are derived from the WAP_PRIMITIVE_BASE structure.
Return Values
Returns S_OK if successful. If unsuccessful, this function returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL.
Remarks
Subsequent calls to WapGetNextPrimitiveSize will retrieve the size of the next packet only after the current primitive has been read by the WapRead function.
Requirements
Pocket PC: Pocket PC 2002 and later.
Smartphone: Smartphone 2002 and later.
OS Versions: Windows CE 3.0 and later.
Header: Wap.h.
Library: Wap.lib.
See Also
WapOpen | WapRead | WAP_PRIMITIVE_BASE
Send Feedback on this topic to the authors