Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WapRead

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function reads a packet.


HRESULT WapRead(
  const WAP_HANDLE whHandle,
  WAP_PRIMITIVE_BASE* const pwpbPrimitiveBuffer,
  const DWORD dwPrimitiveBufferSize 
);

whHandle

[in] The WAP handle retrieved by the WapOpen function.

pwpbPrimitiveBuffer

[out] Pointer to a buffer containing a layer-specific structure of type WAP_PRIMITIVE_BASE. All PDUs are derived from the WAP_PRIMITIVE_BASE structure. If the buffer indicated by this parameter is too small to hold the primitive, the function will return E_FAIL.

dwPrimitiveBufferSize

[in] The size, in bytes, of the buffer indicated by pwpbPrimitiveBuffer. This value can be obtained by calling WapGetNextPrimitiveSize.

Returns S_OK if successful. If unsuccessful, this function returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL.

Headerwap.h
LibraryWap.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobilePocket PC 2002 and later, Smartphone 2002 and later

Community Additions

Show:
© 2014 Microsoft