I am using VC++.
I built a debug version of the HookFindNext demo dll.
I wrote a test driving application that does the following:
...
InjectLibrary(CURRENT_SESSION, "HookFindNextFile.dll");
...
call FindNextFile(...)
...
I but breakpoints in both FindNextFileACallback and FindNextFileWCallback in the demo dll.
I expected that either one or the other breakpoint would be hit.
What actually happens is that the call to FindNextFile from the test app causes the breakpoint in FindNextFindFileACallback to be hit. As soon as FindNextFindACallback calls FindNextFileANext, this causes FindNextFileWCallback to be invoked.
I must be doing (or not doing) something very elementary here. Please advise.
I believe on 2K/XP, this is normal. The 'A' functions just turn around and call the 'W' functions, since everyhing is implemented in UNICODE in 2K/XP. Your 2 hooks are being called as expected.