Partager via


WapSend (Compact 2013)

3/26/2014

This function sends a Wireless Application Protocol (WAP) packet from the layer that was specified in the WapOpen call.

Syntax

HRESULT WapSend(
  const WAP_HANDLE whHandle,
  WAP_PRIMITIVE_BASE* const pwpbPrimitive 
);

Parameters

  • whHandle
    [in] The WAP handle retrieved by the WapOpen function.
  • pwpbPrimitive
    [in] Pointer to a WAP_PRIMITIVE_BASE structure that contains the packet to send. All protocol date units (PDUs) are derived from the WAP_PRIMITIVE_BASE structure.

Return Value

Value

Description

S_OK

Indicates the function was successful.

E_INVALIDARG

Indicates one or more invalid arguments.

E_OUTOFMEMORY

Indicates an out-of-memory error.

E_UNEXPECTED

Indicates an unexpected failure.

E_FAIL

Indicates an unspecified failure.

Requirements

Header

wap.h

Library

Wap.lib

See Also

Reference

WAP Functions
WapOpen
WAP_PRIMITIVE_BASE