TsudaKageyu / minhook

The Minimalistic x86/x64 API Hooking Library for Windows
http://www.codeproject.com/KB/winsdk/LibMinHook.aspx
Other
4.43k stars 898 forks source link

Does minHook support windows server 2019/2022? #98

Open sadward opened 3 years ago

sadward commented 3 years ago

I developed a dll to hook a fastprox.dll function (?Next@CWbemObject@@UAGJJPAPAGPAUtagVARIANT@@PAJ2@Z). So far I used it in Win Server 2012 and worked perfectly. However, I tried to use it in Win srv 2019/2022 but no result. Does minhook have any limitation regarding these two editions of Windows? or any kind of added features in these editions that stop the hooking? Thank You

m417z commented 3 years ago

Does minhook have any limitation regarding these two editions of Windows?

No, there shouldn't be any limitations. Perhaps the function signature (and thus its mangled name) changed.

sadward commented 3 years ago

Does minhook have any limitation regarding these two editions of Windows?

No, there shouldn't be any limitations. Perhaps the function signature (and thus its mangled name) changed.

You are right. After few tests, I found out the problem is VMware. When I tried the hooking on Win SRV2019 (Installed on real hardware), everything is fine but same scenario, Win SRV2019 on VMware, hooking is not working. Could you please help me out and give me some hint. I need to mention that the Win SRV2012 was on VMware and that one also was fine. Thank You

m417z commented 3 years ago

I don't think I can help you with the little amount of details you provided. Some (perhaps obvious) hints: compare both fastprox.dll versions and check MinHook's error code.

If you need extra consultation, you can email me.