-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
64-bit support #4
Comments
Ok got it to compile in x64 but seems it needs to be refactored to use Detour 4.0.1 with x64 support.
Detours 4.0.1 is now open source under the MIT license. Detours is on GitHub at https://github.com/Microsoft/Detours. The source code is identical to Build 343 of Detours 3.0. Detours Build 338 and later fix a security vulnerability that has been identified in releases of Detours before 3.0 Build 334. Detours 4.0.1 supports x86, x64 and other Windows-compatible processors (IA64 and ARM). It includes support for either 32-bit or 64-bit processes. |
Hey @otofoto, Thank you for your interest in the project. This project was built for 32-bit Windows 7. At this time, there's no plans (or time for myself) to update it for a new version of Windows or 64-bit. Awesome that you got it to compile for 64-bit, but I can't support you there as I don't have access to a 64-bit Windows 7 machine. I'll keep this issue open so other people can learn from what you found. |
This seems to be compatible only with 32-bit OS so I had to set Appinit under WOW-64 node for this to work on Windows 64-bit:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Windows
and then use findstr ExfilKeyData "C:\CryptoHookLog.dll"
But how to compile for 64-bit?
antiransom.cpp(711) : error C2664: 'ReadProcessMemory' : cannot convert parameter 5 from 'DWORD *' to 'SIZE_T *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
The text was updated successfully, but these errors were encountered: