TsudaKageyu/minhook

Does minHook support windows server 2019/2022?

sadward opened this issue · 3 comments

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

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.

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

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.