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 resource manager uses the IResourceManager2 interface to enlist in distributed transactions. Following a failure, the resource manager uses this interface to determine the outcome of in-doubt transactions. The IResourceManager2 interface differs from the IResourceManager interface in that there is no need to query for the prepare information during the prepare phase of two-phase commit. Instead, the resource manager can directly log the XID returned by the Enlist2 method call during the prepare phase. During recovery, the resource manager can also use the same XID to query the outcome of the transaction by calling on the Reenlist2 method.
When to Implement
You do not need to implement this interface. It is implemented by the resource manager object of the DTC proxy.
When to Use
Use this interface to enlist in distributed transactions or determine the outcome of in-doubt transactions.
Methods in Vtable Order
|Enlist2||Enlists a resource manager in a transaction.|
|Reenlist2||Re-enlists a resource manager in a transaction.|
A pointer to this call is returned by the IResourceManagerFactory2::CreateEx method.
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