Re: trapping HSHELL_GETMINRECT in a shell hook
- From: "William DePalo [MVP VC++]" <willd.no.spam@xxxxxxxx>
- Date: Fri, 1 Dec 2006 19:03:18 -0500
"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
.
- Prev by Date: Re: Dealing with HANDLEs
- Next by Date: Re: Intro to writing kernel hooks
- Previous by thread: Re: InitializeSListHead appears to blow up
- Next by thread: Re: trapping HSHELL_GETMINRECT in a shell hook
- Index(es):
Relevant Pages
|