6 DetourTransactionCommit
Brian Gianforcaro редактировал(а) эту страницу 2020-08-22 00:25:06 -07:00

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.

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