ICreateWithTransactionEx::CreateInstance method (comsvcs.h)

Creates a COM+ object that executes within the scope of a manual transaction specified with a reference to an ITransaction interface.

Syntax

HRESULT CreateInstance(
  [in]  ITransaction *pTransaction,
  [in]  REFCLSID     rclsid,
  [in]  REFIID       riid,
  [out] void         **pObject
);

Parameters

[in] pTransaction

An ITransaction interface pointer indicating the transaction in which you want to create the COM+ object.

[in] rclsid

The CLSID of the type of object to instantiate.

[in] riid

The ID of the interface to be returned by the ppvObj parameter.

[out] pObject

A new object of the type specified by the rclsid argument through the interface specified by the riid argument.

Return value

This method can return the following values:

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

ICreateWithTransactionEx