다음을 통해 공유


IResourceManager::GetDistributedTransactionManager

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The GetDistributedTransactionManager method returns an interface pointer on the DTC from the resource manager object.

Syntax

  
HRESULT GetDistributedTransactionManager(   REFIID riid,  void ** ppvObject);  

Parameters

riid
[in] IID of the requested interface.

ppvObject
[out] Pointer to the pointer to the requested interface.

Return Values

S_OK
Success.

E_NOINTERFACE
Unable to provide the requested interface.

Remarks

The IResourceManager interface was obtained by calling the IResourceManagerFactory::Create method. The IResourceManagerFactory and IResourceManagerFactory2 interfaces can be obtained by calling QueryInterface on one of the other interfaces supported by the DTC object or by calling the DtcGetTransactionManager function.

Requirements

For an explanation of the requirement values, see Requirements (Component Services).

Platforms: Windows Server 2016, Windows 10, Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8, Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista

Header: Declared in txdtc.h

See Also

IResourceManager2