DetourBinaryResetImports

Microsoft Research Detours

DetourBinaryResetImports

Remove all edits by Detours of the binary's import table.

Definition

BOOL DetourBinaryResetImports(
    _In_ PDETOUR_BINARY pBinary
    );

Parameters

pBinary
Pointer to the binary opened by DetourBinaryOpen.

Return value

If successful, returns TRUE; otherwise, returns FALSE.

Remarks

DetourBinaryResetImportsRemoves all Detours edits made to the import table of a binary opened by DetourBinaryOpen.

For more information on binary editing with Detours, see Payloads and DLL Import Editing in the Detours Overview.

Related Samples

Setdll.