ICreateWithLocalTransaction::CreateInstanceWithSysTx method (comsvcs.h)

Creates a COM+ object that executes within the scope of the specified local transaction.

Syntax

HRESULT CreateInstanceWithSysTx(
  [in]          IUnknown *pTransaction,
  [in]          REFCLSID rclsid,
  [in]          REFIID   riid,
  [out, retval] void     **pObject
);

Parameters

[in] pTransaction

The transaction in which the requested object participates.

[in] rclsid

The CLSID of the class from which to create the requested object.

[in] riid

A reference to the interface identifier (IID) of the interface that is used to communicate with the request object.

[out, retval] pObject

The address of the pointer variable that receives the interface pointer specified with riid.

Return value

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

Requirements

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

See also

ICreateWithLocalTransaction