I
Ian Frawley
Hello
I have written some code that I can run as an app or as a service. Its role
is to monitor the Process.Responding of an executing application. When it
runs as an app it gets the MainWindowHandle and also detects whether the app
is responding or not. However if I run my code as a Windows Service it
doesn't get the MainWindowHandle and always returns true on the
Process.Responding, whether it is or not. My first thought is that a Windows
Service is/might be executing on a different layer to the GUI of the app
being monitored but that is a guess.
Does anyone know why this may be happening and also a possible work around?
Cheers
I have written some code that I can run as an app or as a service. Its role
is to monitor the Process.Responding of an executing application. When it
runs as an app it gets the MainWindowHandle and also detects whether the app
is responding or not. However if I run my code as a Windows Service it
doesn't get the MainWindowHandle and always returns true on the
Process.Responding, whether it is or not. My first thought is that a Windows
Service is/might be executing on a different layer to the GUI of the app
being monitored but that is a guess.
Does anyone know why this may be happening and also a possible work around?
Cheers