TmRollbackEnlistment - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

NTSTATUS TmRollbackEnlistment(
  [in] PKENLISTMENT   Enlistment,
  [in] PLARGE_INTEGER TmVirtualClock
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-tmrollbackenlistment)

TmRollbackEnlistment function

Description

The TmRollbackEnlistment routine rolls back a specified enlistment.

Parameters

Enlistment [in]

A pointer to an enlistment object. Your component can receive this pointer as input to a ResourceManagerNotification callback routine. Alternatively, your component can call ObReferenceObjectByHandle and supply the object handle that a previous call to ZwCreateEnlistment, TmCreateEnlistment, or ZwOpenEnlistment provided.

TmVirtualClock [in]

A pointer to a virtual clock value. This parameter is optional and can be NULL.

Return value

TmRollbackEnlistment returns STATUS_SUCCESS if the operation succeeds. Otherwise, this routine might return the following value:

Return code Description
STATUS_TRANSACTION_REQUEST_NOT_VALID The enlistment cannot be rolled back.

The routine might return other NTSTATUS values.

Remarks

The TmRollbackEnlistment routine is a pointer-based version of the ZwRollbackEnlistment routine.

For information about when to use KTM's Tm*Xxx* routines instead of Zw*Xxx* routines, see Using TmXxx Routines.

See also

ObReferenceObjectByHandle

ResourceManagerNotification

TmCreateEnlistment

ZwCreateEnlistment

ZwOpenEnlistment

ZwRollbackEnlistment