Skip to content

DetourBinaryWrite

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

DetourBinaryWrite

Write an updated binary to a file.

Definition

BOOL DetourBinaryWrite(
    _In_ PDETOUR_BINARY pBinary,
    _In_ HANDLE hFile
);

Parameters

pBinary : Pointer to the binary to be written to a file.

hFile : Handle of the file to receive the contents of the binary.

Return value

If successful, returns TRUE; otherwise, returns FALSE.

Remarks

DetourBinaryWrite writes the updated binary, opened by DetourBinaryOpen, to a file.

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

Related Samples

Impmunge, Setdll.

Clone this wiki locally