GetOpenFileName, EasyHook and Windows XP


The Windows API function GetOpenFileName(...) spawns a window that will allow the user to select a file.
When the process that calls this function has a thread injected through EasyHook32, the GetOpenFileName functions stops working. Even without any hooks installed.
This only occurs on Windows XP. Windows Vista and 7 do not have this problem.
I managed to circumvent the problem by using the experimental STEALTH hooking method which doesn't inject a thread, but injects a bit of code into the main thread instead.
Closed Aug 24, 2015 at 1:01 AM by spazzarama