Answer the question
In order to leave comments, you need to log in
Unload DLL after UnhookWindowsHookEx
When LoadLibrary, I set the following hook:
g_hHook = SetWindowsHookEx( WH_CBT, ( HOOKPROC )CBTHook, g_hInstance, 0 );
How can I make sure that when FreeLibrary
my application dll is unloaded from all programs in which it is loaded?
Simple doesn't do this ( UnhookWindowsHookEx(...)
and DLL_PROCESS_DETACH
according to msdn, it shouldn't).
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question