IWSDEndpointProxy::SendTwoWayRequestAsync method (wsdclient.h)

Sends a two-way request message using an asynchronous call pattern.

Syntax

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

Parameters

[in] pBody

The body of the message.

[in] pOperation

Reference to a WSD_OPERATION structure that specifies the operation to perform.

[in] pAsyncState

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.

[in] pCallback

Reference to an IWSDAsyncCallback object which performs the message status callback notification. This parameter may be optional.

[out] pResult

Reference to an IWSDAsyncResult object that specifies the results of the operation.

Return value

Possible return values include, but are not limited to, the following:

Return code Description
S_OK
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

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsdclient.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDEndpointProxy