Can I show UI in Windows service in MFC? [modified]
-
I am making a Windows service In MFC.I want to show a UI on it. Is it possible? How?
modified on Wednesday, August 20, 2008 7:15 AM
-
I am making a Windows service In MFC.I want to show a UI on it. Is it possible? How?
modified on Wednesday, August 20, 2008 7:15 AM
sumit.durg wrote:
I am making a Windows service.I want to show a UI on it. Is it possible? How?
While creating a service you need to specify the flag
SERVICE_INTERACTIVE_PROCESS
or Openservices.msc
and goto the logon tab and check"Allow service to interact with desktop"
checkbox.Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
I am making a Windows service In MFC.I want to show a UI on it. Is it possible? How?
modified on Wednesday, August 20, 2008 7:15 AM
You really should avoid showing ANY user interface in a Windows Service, they typically run when no one is logged in so there is no-one at the PC to either see the UI or use it. Also, as a Service usually runs as a different user account to the currently logged on user they will not see the UI anyway, especially in Vista when they use a special desktop.
Jonathan Wilkes Darka[Xanya.net] [My Code Project Articles]
-
I am making a Windows service In MFC.I want to show a UI on it. Is it possible? How?
modified on Wednesday, August 20, 2008 7:15 AM
Windows Vista and Windows Server 2008 no longer permit interactive UI on the user's desktop. More information[^].
DoEvents: Generating unexpected recursion since 1991