Partager via


IWSDAsyncResult (Windows Embedded CE 6.0)

1/6/2010

This interface represents an asynchronous operation.

The IWSDAsyncResult interface inherits the methods of the IUnknown interface.

In addition, the following table lists the methods supported by the IWSDAsyncResult interface in vtable order.

Method Description

IWSDAsyncResult::SetCallback

Specifies a callback interface to call when the asynchronous operation has completed.

IWSDAsyncResult::SetWaitHandle

Specifies a wait handle to set when the operation completes.

IWSDAsyncResult::HasCompleted

Indicates whether the operation has completed.

IWSDAsyncResult::GetAsyncState

Gets the state of the asynchronous operation.

IWSDAsyncResult::Abort

Aborts the asynchronous operation.

IWSDAsyncResult::GetEvent

Gets a WSD_EVENT structure that contains the result of the event.

IWSDAsyncResult::GetEndpointProxy

Retrieves the endpoint proxy for the asynchronous operation.

Remarks

The IWSDAsyncResult interface can be used to set a wait handle to receive event or message notification or poll for operation completion. It can also retrieve the state of an asynchronous operation and retrieve the results and response body of the event.

The IWSDAsyncCallback interface can be used to provide an asynchronous calling pattern in support of WSDAPI messaging and eventing, allowing an application to receive callback notification based on the status of an operation.

A failed asynchronous operation is treated as a completed asynchronous operation. Error or fault information can be retrieved from the IWSDAsyncCallback interface using the IWSDAsyncCallback::AsyncOperationComplete method.

Requirements

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

See Also

Reference

Web Services on Devices Interfaces
Web Services on Devices Reference