Home > Software engineering >  Take the liberty of ask, why UnHookWindowsHookEx collapse?
Take the liberty of ask, why UnHookWindowsHookEx collapse?

Time:10-10

I made a hook WindowsHookEx
How to solve the unloading, the program does not collapse?


this is a DLL code

this is the injector code,

CodePudding user response:

Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,

CodePudding user response:

Look at calling the API, each parameter is correct, print it and see,

CodePudding user response:

A lot of problems, for instance SetWindowsHookEx last parameter requirements is the thread ID, rather than the process ID

CodePudding user response:

You this loadlibrary have what meaning? Not inject you static loading is not remote, also for obtaining the pointer is dynamic loading, do you want to really want to play with low first order a keyboard hook

CodePudding user response:

# 4 to teach me?

CodePudding user response:

reference 4 floor xuddk727 response:
you this loadlibrary have what meaning? Not inject you static loading is not remote, also for obtaining the pointer is dynamic loading, do you want to really want to play with low first order a keyboard hook



A great god, and I don't understand well,

CodePudding user response:

It's just to get input, right? You play first WH_KEYBROAD_LL, hooks for many years not to play early forget
  • Related