-
Notifications
You must be signed in to change notification settings - Fork 1k
DetourBinaryOpen
Brian Gianforcaro edited this page Aug 22, 2020
·
8 revisions
Read the contents of a binary into memory for editing.
PDETOUR_BINARY DetourBinaryOpen(
_In_ HANDLE hFile
);
hFile : The handle of the binary to be opened for editing.
If successful, returns a pointer to the detours binary object;
otherwise, returns NULL
.
The function sets the following error code, if appropriate. The error
code may be retrieved after the function has returned by calling
GetLastError
.
ERROR_OUT_OF_MEMORY : Not enough memory to complete the operation.
DetourBinaryOpen
reads the contents of a Windows PE COFF binary into
memory for editing.
For more information on binary editing with Detours, see Payloads and DLL Import Editing in the Detours Overview.