Thanks for the answer.
J.
Post by Anthony Park [MVP]Janiv,
I have implemented a MCE hook-up agent that keeps monitoring the Media
Center app on a complex of things - messages, windows, positions, etc. -
including WM_INPUT (raw input messages), keyboard and mouse messages and
etc.
A piece of advice - if you are playing with MCE on Vista, try to stay away
from a service implementation for your app. On Vista, services are running
in a separate, isolated Windows session (session 0) and it may take you an
effort to implement the cross-session interface between your hook into MCE
and the service. (not impossible but just overcomplicates the
implementation)
Anthony,
Despite the fact that the SetWindowsHookEx approach (or any other
Dll-inject method supported - better say possible - in Win32 space) is
fairly dangerous, this is pretty much the only way you can try and fix
some 2/10 foot UI issues within MCE, especially on Vista.
I wish some things in MCE app could have more control via Group Policy or
some registry entries or INI/XML settings. It would make it much easer to
do MCE app customizations to meet some customer needs.
--
=========
Regards,
KM
Post by Anthony Park [MVP]Thanks,
And how Do I catch the WM_INPUT commands, and the WM_KEYDOWN?
Has anyone tried to catch any of those messages in Win32 services?
Thanks again,
Janiv.
Post by Gary ChansonI don't think you can. I have not been able to intercept any of the
WM_INPUT messages with hooks. You might be able to incept the WM_APPCOMMAND
messages with a global hook but I haven't tried it yet.
--
- Gary Chanson (Windows SDK MVP)
- Abolish Public Schools
Post by Janiv RatsonThanks you all.
All my work is based on this article.
The problem is that I don't know how to implement the explained issue
within
Post by Janiv Ratsona Win32 service.
How do I catch all the inputs (WM_APPCOMMAND, WM_INPUT, and WM_KEYDOWN)
into
Post by Janiv Ratsonmy win32 service.
Thanks again,
J.
Post by Gary ChansonBe aware that there are some mistakes in this article, but it's close
enough to get you started.
--
- Gary Chanson (Windows SDK MVP)
- Abolish Public Schools
Post by DrewDoes this help?
http://msdn2.microsoft.com/en-us/library/aa468212.aspx
Drew
Help?
Post by Janiv RatsonHello Joseph and thanks,
I do not handle a message pump within my service.
How do I do it ? How do I register to raw input? Does raw input
WM_INPUT, WM_APPCOMMAND and WM_KEYDOWN?
That is my greatest problem.
Thanks again,
J.
Since services do not connect to devices in general, it may not be
possible at all. But
did you bulid a service with a message pump, and register for raw
input
Post by DrewPost by Janiv Ratsonfrom the device?
joe
On Mon, 16 Apr 2007 19:09:49 +0200, "Janiv Ratson"
Post by Janiv RatsonHello,
I want to write a win32 service (c++) and receive MCE remote
messages
Post by Janiv RatsonPost by Gary ChansonPost by DrewPost by Janiv RatsonPost by Janiv Ratsoninto
it.
the messages I want to receive are based on the MCE remote
http://msdn2.microsoft.com/en-us/library/ms867196.aspx#remote_control_t
o
Post by Janiv RatsonPost by Gary Chansonpic5
Post by DrewPost by Janiv RatsonPost by Janiv RatsonThanks in advance,
J.
Joseph M. Newcomer [MVP]
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm