Re: trapping HSHELL_GETMINRECT in a shell hook



"Svapne" <Svapne@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:090217C7-2028-4F61-B21D-0DBE620677BA@xxxxxxxxxxxxxxxx
I know I must be missing something, because I can't find any
information about this problem.

What I'm trying to do is monitor when top-level windows are minimized
and maximized.

The SH_SHELL hook seemed to be the perfect solution, but I can't seem
to trap the HSHELL_GETMINRECT action in my hooking code.

I have my hooking code in a DLL and I install the hook with the
following code:
...

Your hook procedure, which resides in a DLL, will be loaded into multiple
processes as necessary. If you are using Visual Studio's debugger, though,
it is capable of displaying debug output only for process you debug -
typically the one that planted the hook.

So, it may be that your hook is trapping the event, even though you don't
see your message.

You might want to download this tool which displays debug strings no matter
the source:

http://www.microsoft.com/technet/sysinternals/Miscellaneous/DebugView.mspx

Regards,
Will


.



Relevant Pages

  • Re: trapping HSHELL_GETMINRECT in a shell hook
    ... My dev XP machine must have a hook installed ... I have my hooking code in a DLL and I install the hook with the ... Your hook procedure, which resides in a DLL, will be loaded into multiple ... it is capable of displaying debug output only for process you debug - ...
    (microsoft.public.win32.programmer.kernel)
  • Detect if application is run from inside visual studio
    ... I am working on an application that installs a system wide keyboard ... I do not want to install this hook when I am running a debug ... build from inside the visual studio (or else it would hang the studio ... DEBUG symbol is defined. ...
    (microsoft.public.vsnet.debugging)
  • Re: trapping HSHELL_GETMINRECT in a shell hook
    ... This code shoud work unless there is another hook that does not call ... I have my hooking code in a DLL and I install the hook with the ... Your hook procedure, which resides in a DLL, will be loaded into multiple ... it is capable of displaying debug output only for process you debug - ...
    (microsoft.public.win32.programmer.kernel)
  • Re: [RFC] pata_icside driver
    ... hook is only called if a debug define is manually enabled in libata.h, ... in a single callsite. ... The number of people that actually use the hook -- kernel hackers ... Russell King ...
    (Linux-Kernel)
  • Re: Using Visual Basic to Write System-Wide Hooks
    ... >I've spent about an hour looking into writing a system-wide hook using only ... a system-wide callback function must be located within a DLL. ... >system-wide hook DLL. ... The reason is that Visual Basic has some large runtime ...
    (microsoft.public.vb.winapi)

Quantcast