By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,478 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,478 IT Pros & Developers. It's quick & easy.

Problems with C++ Hook

P: n/a

I get a WM_USER+1010 via PostMessage sent to my window by another process.
I wanted to set a Hook to somehow catch this Message, so i did:
myHook = SetWindowsHookEx (WH_MSGFILTER , (HOOKPROC)(DesktopCallback),
NULL, GetCurrentThreadId());

(instead of WH_MSGFILTER i also tried others)
in Spy++ i see that the message WM_USER+1010 is received by the window,
But it seems to never reach my callback function! When i change WH_MSGFILTER
to something else,
different Messages land in the DesktopCallback, but never a WM_USER+1010

What am i doing wrong?

Thank you
Aug 5 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
You will probably have better luck asking this question on one of the
microsoft Visual Studio newsgroups.

This newsgroup is geared towards standard c++ language questions only.
Your question is specific to the MS Windows API.

--John Ratliff
Aug 5 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.