![]() |
plugin hooking... one step to void the /NOUNLOAD
code: Example: code: at the end, $0 returns 2, when it suppose to be 4.... what I'm missing? :igor: |
-LoadLibrary in DllMain, safe?
-SetWindowsHookEx in DllMain, safe? (if I remember correctly only some of the functions in kernel32 may be used in DllMain) -wrong function type for SetWindowsHookEx (suma returns void, hookproc returns LRESULT) -does not call CallNextHookEx -global hook needed? -why is hHookProc a global variable? |
so, any ideas how? :)
|
I have not tested this code and im not even sure that the dll is not unloaded right away
As I have told you before, the way I have done it is to call LoadLibrary on yourself each time one of the exported functions are called by nsis, the only problem with this is unloading, so you could subclass the nsis window and unload in WM_DESTROY or use a hook. Dro has also talked about api hooking FreeLibrary or something like that |
| All times are GMT. The time now is 04:43. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.