If I undertood correctly, when the app is initiated a hook is created for the WH_CBT message, which got's fired whenever a window is minimized... then the code in the dll's hook uses SendMessage to send a message to VisualTooltip carrying (I guess) the window handle of the window that's being minimized. Finally, this message is processed by VisualToolTip's message loop which takes the handle and uses PrintWindow to create a snapshot out of it?
re there any considerations I should take to create a message hook (I have neved done that before) at least not in windows... oh god, that made me remember my old DOS days!)
Another thing... while reading the MSDN docs I get the impression that the DLL containing the hook's code should be in an independent dll from the application one (in my case the Docklet's dll), so I should use LoadLibrary at DockletCreate to load the docklet dll. The hook dll should only contain the hook procedure? nothing else?
Aqua-Soft Forums