-
Notifications
You must be signed in to change notification settings - Fork 1k
DetourSetIgnoreTooSmall
Enable or disable transaction abort on a failure to attach or detach an individual detour function.
BOOL DetourSetIgnoreTooSmall(
_In_ BOOL fIgnore
);
Returns TRUE
if Detours was previously ignoring failures to detour
target functions too small for detouring; otherwise, returns FALSE
.
fIgnore
: Specifies whether to ignore functions that are too small to detour.
If this parameter is set to TRUE
, these functions will be
ignored if encountered. If this parameter is set to FALSE
, then
encountering a function too small to be detoured will cause
DetourTransactionCommit
to fail.
DetourSetIgnoreTooSmall
sets the flag to determine if failure to
detour a target function that is too small for detouring is sufficient
error to cause abort of the current detour transaction.
For more information on using Detours to intercept function calls, see Interception of Binary Functions or Using Detours in the Detours Overview.