Re: windows handler of an out proc server

From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 06/08/04


Date: Mon, 7 Jun 2004 22:34:18 -0700

Do I need to post the documentation for WM_DEVICECHANGE
or you'll read it yourself? It's even simpler than that - if you want
to receive _window_ messages, you need a _window_.

-- 
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Snow" <FilamentSnow@operamail.com> wrote in message
news:OWJBWWGTEHA.3756@TK2MSFTNGP11.phx.gbl...
> Thanks for your suggestion Alexander but I want to avoid creating an
hidden
> window. How about GetModuleHandle()? Can I use that? Since HANDLE and
> HMODULE have the same size, maybe I can "cheat" it by passing in HMODULE
> instead of HANDLE. Not sure what is the out come though...
>
>
> "Alexander Nickolov" <agnickolov@mvps.org> wrote in message
> news:%23YsPjHGTEHA.2416@TK2MSFTNGP09.phx.gbl...
> > Create a hidden top level window in your server (HWND_DESKTOP
> > or NULL as its parent).
> >
> > -- 
> > =====================================
> > Alexander Nickolov
> > Microsoft MVP [VC], MCSD
> > email: agnickolov@mvps.org
> > MVP VC FAQ: http://www.mvps.org/vcfaq
> > =====================================
> > "Snow" <CreativeSnow@operamail.com> wrote in message
> > news:%23Ai7NJFTEHA.3988@tk2msftngp13.phx.gbl...
> > > Hey gurus,
> > >
> > >     How do I obtain a windows handler of an out proc server? In fact,
is
> > > this possible? The reason is I need my out proc to listen to device
> > changes
> > > through windows messages (WM_DEVICECHAGE). In order to do that I need
to
> > > pass in a window handler to register for the call back.
> > >
> > > PS: My out proc server is not a service
> > >
> > >
> >
> >
>
>


Relevant Pages