> Hi Pete,
> Thanks for the response, however ultimately I am incorporating this into
> a
> service, so it wont be possible to override wndproc.
Win32 services can create a message-only window. At the very least, you
should be able to accomplish the same in your service via p/invoke. I
don't know of any .NET support for that, but it might exist.
> According to this doc
> (about halfway down)
> http://msdn.microsoft.com/en-us/library/ms704147(VS.85).aspx
> It suggests for console / service apps it is possible to get these msgs.
Well, that page is for Windows Mobile (CE). It's possible that the
technique works on Windows Mobile but not regular Windows. What platform
are you testing this on? It's also possible that the documentation is
simply incorrect. That could either be an error in the documentation, or
some bug in .NET.
Sorry I don't have anything more detailed.
Pete
johnf - 16 May 2008 20:38 GMT
Actually the link is for Mobile PC's (laptops?) not CE. The topic covers
Power Management in Windows XP and Vista. Thanks for the input Pete, if
anyone has anything else, greatly appreciated...
> > Hi Pete,
> > Thanks for the response, however ultimately I am incorporating this into
[quoted text clipped - 19 lines]
>
> Pete