Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function reads a packet.

Syntax

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

Parameters

whHandle

[in] The WAP handle retrieved by the WapOpenfunction.

pwpbPrimitiveBuffer

[out] Pointer to a buffer containing a layer-specific structure of type WAP_PRIMITIVE_BASE. All PDUs are derived from the WAP_PRIMITIVE_BASEstructure. 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.

Return Value

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

Requirements

Header wap.h
Library Wap.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.