Skip to content

DetourTransactionAbort

Brian Gianforcaro edited this page Aug 22, 2020 · 5 revisions

DetourTransactionAbort

Abort the current transaction for attaching or detaching detours.

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.

Related Samples

dynamic_alloc.

Clone this wiki locally