These are chat archives for EasyHook/EasyHook

12th
Jul 2016
Sérgio Fonseca
@SammyROCK
Jul 12 2016 12:25
I managed to get it working with the version 2.7.5558.0 and compiled a version with 1024 hooks that works for me
Both Nuget releases are broken on Windows XP
I didn't notice this earlier because we were using a project from before EasyHook moved to Github and I wrongly assumed the DLLs were up to date
Sérgio Fonseca
@SammyROCK
Jul 12 2016 14:04
I managed to trace what was the matter with Windows XP
Since I had to compile version 2.7.5558.0 in VS 2012 Express, I had to download and install Windows Driver Kit Version 7.1.0 in order to obtain atlbase.h
I also had to rename the folder atl71 to atl30 because it was glitched in some headers, referencing "../atl30/<...>"
Then I had to add the include directories C:\WinDDK\7600.16385.1\inc\atl30 and C:\WinDDK\7600.16385.1\inc\mfc42
Along with the additional library directories C:\WinDDK\7600.16385.1\lib\ATL\i386 and C:\WinDDK\7600.16385.1\lib\Mfc\i386 for x86
And C:\WinDDK\7600.16385.1\lib\ATL\amd64 and C:\WinDDK\7600.16385.1\lib\Mfc\amd64 for x64
Sérgio Fonseca
@SammyROCK
Jul 12 2016 14:10
With those set I can compile the current version of EasyHook and use it with windows xp
Note that now EasyHookDll has this warning:
warning LNK4254: section 'ATL' (50000040) merged into '.rdata' (40000040) with different attributes
My guess is that VS2013's version of ATL is not compatible with Windows XP and somehow makes the hook dll unable to load
By overriding it with the one included in the WDK 7.1.0 the hook can be used in Windows XP once again
Thoughts?
Sérgio Fonseca
@SammyROCK
Jul 12 2016 14:17
Would you like me to open an issue regarding this matter?
Hochmah
@Hochmah
Jul 12 2016 19:12
Hi there! I'm tottaly newbie with EasyHook.
Just downloaded EasyHook-master, opened in vs2015, compiled without errors, msbuildtasks is intalled... But when running build.bat I got some errors like:
EasyHookDll_64.rc(10): fatal error RC1015: cannot open include file 'afxres.h'. [C:\Users\alexa\Documents\Visual Studio
2015\Projects\EasyHook-master\EasyHookDll\EasyHookDll.vcxproj]
Any diretions?
Sérgio Fonseca
@SammyROCK
Jul 12 2016 20:36

It's not yet converted to VS2015,
you can either try with VS2013
or replace

include "afxres.h"

with
//#include "afxres.h"

include "WinResrc.h"

define IDC_STATIC -1

Sorry, my # was lost and the font size was changed along with it
Justin Stenning
@spazzarama
Jul 12 2016 21:48
@SammyROCK sure, add an issue with details. I'm not sure if will be able to fix but at least if someone needs it. Perhaps I can do a new WinXP compat branch - not sure if I have a VM still for it tho :)