Hi all,
I wrote a piece of code with madHook to capture some system functions (for example: GetSaveFileNameW). But the call result of HookAPI is not true or false, but - 1. What's the matter? In addition, even if - 1 is returned, the capture is still normal, but it does not take effect immediately. It needs to wait more than ten seconds. Does anyone know why?
HookAPI return value
Re: HookAPI return value
0 = FALSE; anything else = TRUE. That's how things have always worked. So -1 is TRUE.
Not taking effect immediately seems strange. Do you have more details about that?
Not taking effect immediately seems strange. Do you have more details about that?