-
Notifications
You must be signed in to change notification settings - Fork 1k
DetourBinaryFindPayload
Brian Gianforcaro edited this page Aug 22, 2020
·
6 revisions
Find a payload within a binary.
_Writable_bytes_(*pcbData)
_Readable_bytes_(*pcbData)
_Success_(return != NULL)
PVOID DetourBinaryFindPayload(
_In_ PDETOUR_BINARY pBinary,
_In_ REFGUID rguid,
_Out_ DWORD * pcbData
);
pBinary
: Pointer to the binary opened by DetourBinaryOpen
.
rguid
: GUID
of the specified payload.
pcbData : Pointer to the variable that receives the size of the specified payload in bytes.
DetourBinaryFindPayload
Finds a specific payload within a binary opened
by DetourBinaryOpen
.
For more information on binary editing with Detours and payloads, see Payloads and DLL Import Editing in the Detours Overview.
If successful, returns TRUE
; otherwise, returns FALSE
.