Partager via


IWSDEndpointProxy::SendTwoWayRequestAsync (Windows Embedded CE 6.0)

1/6/2010

This method sends a two-way request message using an asynchronous call pattern.

Syntax

HRESULT SendTwoWayRequestAsync(
  const void* pBody,
  const WSD_OPERATION* pOperation,
  IUnknown* pAsyncState,
  IWSDAsyncCallback* pCallback,
  IWSDAsyncResult** pResult
);

Parameters

  • pBody
    [in] The body of the message.
  • pOperation
    [in] Reference to a WSD_OPERATION structure that specifies the operation to perform.
  • pAsyncState
    [in] Anonymous data passed to pCallback when the operation has completed. This data is used to associate a client object with the pending operation. This parameter may be optional.
  • pCallback
    [in] Reference to an IWSDAsyncCallback object which performs the message status callback notification. This parameter may be optional.
  • pResult
    [out] Reference to an IWSDAsyncResult object that specifies the results of the operation.

Return Value

The following table shows the possible error code return values.

Error code Description

S_OK

This method completed successfully.

E_POINTER

pOperation or pResult is NULL.

E_OUTOFMEMORY

Insufficient memory to complete the operation.

Remarks

This method is normally only called by generated proxy code.

Requirements

Header wsdapi.h
Library wsdapi.lib
Windows Embedded CE Windows Embedded CE 6.0 R2

See Also

Reference

IWSDEndpointProxy
Web Services on Devices Interfaces