DetourBinaryPurgePayloads

Microsoft Research Detours

DetourBinaryPurgePayloads

Remove all payloads from a binary.

Definition

BOOL DetourBinaryPurgePayloads(
    _In_ PDETOUR_BINARY pBinary
    );

Parameters

pBinary
Pointer to binary, opened by DetourBinaryOpen, to be purged.

Remarks

DetourBinaryPurgePayloadsRemoves all payloads from a binary opened by DetourBinaryOpen.

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

Return value

If successful, returns TRUE; otherwise, returns FALSE.