How does one get rid of (make exit) the Main App that loaded the DLL and created a hook?
I am using VC++ 2010, under Windows XP SP3. The code is largely in Win32 with native call such as LoadLibrary, SetWindowsHookEx, DLLmain, etc). I use a global WH_KEYBOARD hook.
I have written a Main App that loads and sets a hook for a simple DLL. Most works well. But I need to get rid of the Main App, leaving the DLL to work alone. However, the Main App contains the message pump that creates callbacks to the hooked procedure in the DLL.