Discussion:
how to know.......which hook to use
(too old to reply)
sree
2009-10-06 10:54:01 UTC
Permalink
Hi friends,
how to hook WM_ENTERIDLE.i mean which hook i have to use?.
generally how to know which hook we have to use for particular message..i
read about hooks in msdn..but didnt get this information


thanks in advance..
Igor Tandetnik
2009-10-06 12:00:12 UTC
Permalink
Post by sree
how to hook WM_ENTERIDLE.i mean which hook i have to use?.
generally how to know which hook we have to use for particular
message..i read about hooks in msdn..but didnt get this information
If you are talking about SetWindowsHookEx, then WH_CALLWNDPROC[RET]
hooks see all messages.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
sree
2009-10-07 12:35:01 UTC
Permalink
Thanks for your reply igor,
actually my problem is "how to know which menu item is
clicked in visual studio 2005". i wrote some code using hook for monitoring
WM_MENUSELECT..it is working fine for notepad,visual c++6.0 applications but
when i use this code for VS-2005 it is not woking(these type of msgs are not
generating when i click menuitem in VS2005)..

please help me on this..i am really getting irritating becoz i am struggling
from last one month...


any help is greatly appreciated...
Post by Igor Tandetnik
Post by sree
how to hook WM_ENTERIDLE.i mean which hook i have to use?.
generally how to know which hook we have to use for particular
message..i read about hooks in msdn..but didnt get this information
If you are talking about SetWindowsHookEx, then WH_CALLWNDPROC[RET]
hooks see all messages.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
流星09
2009-10-07 15:12:13 UTC
Permalink
Do {
if (you are familiar with Windows) {
you will not try to use hook to log all application;
break;
}
you need months and years to be familiar with Windows;
} while (true);
Post by sree
please help me on this..i am really getting irritating becoz i am struggling
from last one month...
Tim Roberts
2009-10-08 02:39:15 UTC
Permalink
Post by sree
actually my problem is "how to know which menu item is
clicked in visual studio 2005". i wrote some code using hook for monitoring
WM_MENUSELECT..it is working fine for notepad,visual c++6.0 applications but
when i use this code for VS-2005 it is not woking(these type of msgs are not
generating when i click menuitem in VS2005)..
Nope. Like many Microsoft applications (including all of the Office apps),
Visual Studio uses custom user interface components that do not necessarily
use the normal window message schemes.
Post by sree
please help me on this..i am really getting irritating becoz i am struggling
from last one month...
I guess you need to come up with another plan. If you need to automate
Visual Studio, there are ways to do that with plugins and such, but there's
no such thing as a generic solution.
--
Tim Roberts, ***@probo.com
Providenza & Boekelheide, Inc.
Loading...