IServiceActivity::AsynchronousCall method (comsvcs.h)

Performs the user-defined work asynchronously.

Syntax

HRESULT AsynchronousCall(
  [in] IServiceCall *pIServiceCall
);

Parameters

[in] pIServiceCall

A pointer to the IServiceCall interface that is used to implement the batch work.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the following values.

Return code Description
S_OK
The batch work was accepted by the activity to run asynchronously. This return value does not necessarily mean that the batch work successfully completed.
CO_E_ASYNC_WORK_REJECTED
The batch work cannot be added to the asynchronous work queue of the activity.

Remarks

The batch work that is run by this method runs in the context and thread apartment of the activity that was created by the call to CoCreateActivity.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IServiceActivity