There is no UI, it's trying to pick up ALL the keydown events from the
WinAPI via: SetWindowsHookEx in user32.dll.
The application's aim is to just disable the keyboard.
For the API call to work it needs an Application.Run() somewhere to get the
windows message pump running.
In my console app I spawn a thread to hook up the events and then call
Application.Run() that works fine. However, now i've converted it into a
service it no longer works.
Wah.
Any ideas?
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:OP**************@TK2MSFTNGP03.phx.gbl...
Simon,
You are sure that your service has not any user interface at all?
Cor
"Simon Tamman" <i_**********************************@NOSPAMhotmai l.com>
schreef in bericht news:0D****************@newsfe1-win.ntli.net...
Will Application.Run() work within a service? (e.g. will the message
pump
be
operational)
My service works as an exe but not a service, i'm wondering it's it's
due
to
that.
Kind Regards
Simon