Commit Graph

5 Commits

Author SHA1 Message Date
Charles Milette
8cbb9e2b82 Feature: Add DetourFindRemotePayload and improve other payload-related methods (#81)
Other improvements:

- Makes the pcbData parameter in DetourFindPayload and DetourFindPayloadEx optional, so that if an application only needs to search for the presence of a payload, they can ignore the size by passing nullptr.

- Makes the pvData parameter in DetourCopyPayloadToProcess const, so that a pointer to a const C++ object can be passed instead of the object needing to be const_casted or being non-const.

- Adds DetourCopyPayloadToProcessEx, which has the same interface than DetourCopyPayloadToProcess, but it returns the address of the payload in the remote module, if the program later wants to write to it.

- Add payload example and extra unit tests covering new APIs. 

Fixes #79

Co-authored-by: Charles Milette <me@charlesmilette.net>
2021-03-06 00:22:08 -08:00
Charles Milette
784f155d91 Feature: Add safe DetoursAttach (and friends) overloads (#178)
Fixes #176

I've also added a sample (a copy of the `simple` sample, but without the `(PVOID&)` casts) to validate the functionality.
2021-03-02 09:34:30 +00:00
tokikuch
edc8b07ae7 Add a new sample dynamic_alloc to test a new API function (#55)
Add a new sample dynamic_alloc to test the new API function DetourAllocateRegionWithinJumpBounds.
2019-06-20 00:13:15 -07:00
David Tarditi
66b5e07a3c Establish ARM64 baseline. (#30)
* Establish testing/build baseline for samples on ARM64.

* Add mising detour_find_jmp_bounds for ARM64.
2018-07-31 17:20:17 -07:00
Galen Hunt
e5400b4ec5 Initial fork of Detours 4.0 from Detours 3.0 archive. 2016-11-07 17:37:52 -08:00