DetourTransactionAbort

Microsoft Research Detours

DetourTransactionAbort

Abort the current transaction.

Definition

LONG DetourTransactionAbort(VOID);

Return value

Returns NO_ERROR if the pending transaction was completely aborted; otherwise, returns an error code.

Error codes

ERROR_INVALID_OPERATION
No pending transaction exists.

Remarks

DetourTransactionAbort aborts the current transaction created with DetourTransactionBegin. Aborting a transaction reverse the effects of any calls to the DetourAttach, DetourAttachEx, DetourDetach, or DetourUpdateThread APIs made within the transaction.

For more information on using Detours to intercept function calls, see Interception of Binary Functions or Using Detours in the Detours Overview.