|
Both RegisterHotKey and UnRegisterHotKey are found in "user32.dll"
You need to hope that the app you are hooking into (for evil purposes) has LoadLibrary and GetProcAddress...
Otherwise you have to hard-code the calls into your program or have a range of calls hard coded for each operating system and service pack...
You can find out which function these are in User32.dll and walk through user32.dll 's PE header export section and get the address of the function that way.
Other than that you are going to have to do things the hard way. There are a number of papers on this writtern by the virus writers or rootkit authors ....
|