ITransactionPhase0EnlistmentAsync::Enable
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
An application invokes the Enable method to indicate that it is prepared to accept Phase0 notifications; which changes the phase0 enlistment object from the disabled state (in which it was created) to the enabled state. The phase0 participant must be prepared to receive its phase0 notification prior to the return from the Enable method.
Syntax
HRESULT Enable(void);
Return Values
S_OK
Success—the transaction enable completed.
E_UNEXPECTED
Failure—an unexpected error occurred.
XACT_E_PROTOCOL
Failure—Enable was called illegally.
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