IMTSActivity::AsyncCall method (comsvcs.h)

Performs the user-defined work asynchronously.

Syntax

HRESULT AsyncCall(
  [in] IMTSCall *pCall
);

Parameters

[in] pCall

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

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Remarks

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

A return value of S_OK indicates that the batch work was accepted by the activity to run asynchronously. However, it does not necessarily mean that the batch work successfully completed.

Requirements

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

See also

IMTSActivity