IMTSCall::OnCall method (comsvcs.h)

[IMTSCall is available for use in the operating systems specified in the Requirements section. It may be altered of unavailable in subsequent versions. Instead, use IServiceCall.]

Triggers the execution of the batch work implemented in this method.



Return value

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


The batch work that is run in this method runs in the context and thread apartment of the activity that was created by the call to MTSCreateActivity. The batch work in this method is run using a call to either IMTSActivity::SynchronousCall or IMTSActivity::AsyncCall, using the IMTSActivity pointer that was returned from the call to MTSCreateActivity.


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