Skip to content

DetourTransactionCommit

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

DetourTransactionCommit

Commit the current transaction for attaching or detaching detours.

Definition

LONG DetourTransactionCommit(VOID);

Return value

Returns NO_ERROR if successful; otherwise, returns an error code.

Error codes

ERROR_INVALID_DATA : Target function was changed by third party between steps of the transaction.

ERROR_INVALID_OPERATION : No pending transaction exists.

Other : Error code returned by API within DetourAttach, DetourAttachEx, or DetourDetach that caused transaction to fail.

Remarks

DetourTransactionCommit commits the current transaction created with DetourTransactionBegin. Committing a transaction make all updates specified in any calls to the DetourAttach, DetourAttachEx, DetourDetach, or DetourUpdateThread APIs 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

Commem, Cping, Dtest, Excep, FindFunc, Member, Simple, Slept, Traceapi, Tracebld, Tracelnk, Tracemem, Tracereg, Traceser, Tracetcp, Tryman.

Clone this wiki locally