stevemk14ebr / PolyHook

x86/x64 C++ Hooking Library
MIT License
886 stars 172 forks source link

how to make this work for VS2013? #13

Closed ScalletaZ closed 8 years ago

ScalletaZ commented 8 years ago

auto GetProtectionObject() { //Return an object to restore INT3_BP after callback is done return finally([&]() {

'auto' gives error

stevemk14ebr commented 8 years ago

You can try to use declytype to replace auto but it will be a pain. This was made for vs2015

ScalletaZ commented 8 years ago

just thought you could change a way so that PolyHook would work for all version complier. :)

Houd1ny commented 7 years ago

I just removed this function :D

Houd1ny commented 7 years ago

But how to rebuild capstone.lib

stevemk14ebr commented 7 years ago

Removing this function is a bad solution, it is required if you use any veh hook types. To compile capstone clone the branch on my profile and follow the build instructions given on the latest capstone web page

Houd1ny commented 7 years ago

I have rebuild capstone lib for vs 2013. Remove some features(I just need Detour feature). So if need just this you could use my fork.