Click to See Complete Forum and Search --> : Windows NT 4.0 Logoff Problems with interactive Service


Sloth
September 26th, 2003, 04:32 AM
Hi

I know, this is an issue wich has been ask for several Times, but i didn't find a solution specific to this Problem. I got an really odd behaviour. I'm running a service which creates a subclassed window to interact with an Item in the System Status Area. The Service is running under der System Account and has the Property "Allow interaction with desktop" set.

On Windows 2000 everything works fine and the User is Logged of, even if this windows are still running in the background.

On Windows NT on the opposit, the System denies to log off the User and prompts a Message, that this subclassed window isn't reacting to the 'End Task' request and the shutdown Process is interuppted.

Does anybody know, what to do, to prevent the System from trying to shutdown this window during the logoff sequence? Because it has to be running, even if the User isn't Log in, to receive some other (Userdefined) Messages.

Any inpuzt would be highly appreciated..

Greez Urs

verifier
September 29th, 2003, 08:58 AM
imho you should not mix services with desktop applications.

create a service that do the servicetask. Create a desktop app the communicates with the service. the service can make sure that the desktop app is loaded (and stays loaded) when a user logs in.