Re: WinHelp on W2003 SP1

Tech-Archive recommends: Fix windows errors by optimizing your registry



Note that interactive services are strongly discouraged. If a service
displays UI on the user's desktop, the user can often exploit this
and gain the same privileges as the service account (so called
"shatter" attack).

As a workaround for your problem, you can use CreateProcess
or some other API that doesn't automatically block until the child
process terminates. But ideally you should use a proxy process
running in the user's session to display the UI:

http://support.microsoft.com/default.aspx?scid=kb;en-us;327618
http://support.microsoft.com/default.aspx?scid=kb;en-us;308403

--
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Rhett Gong [MSFT]" wrote:

> Hello Sue,
> Is the service installed or written by you?
> If it is installed by your as system service, you may need to check the
> "Allow service to interact with desktop" to allow the winhlp32 to display
> in the active desktop.
> "Allow service to interact with desktop" can be found through following
> stesps:
> 1> run services.msc in your run box
> 2> locate your service and click property
> 3> in Log On tabpage, if you log on your service as Local System Account,
> please check the box below.
>
> Please let me know if my answer helps you resolve the problem. If there is
> anything more I can assist you, please feel free to let me know.


.



Relevant Pages

  • Re: Scheduled VB.NEt program
    ... do not display modal dialogs or message boxes ... because there is no graphical user interface for the user to interact with." ... "The interactive window station, Winsta0, is the only window station that ... can display a user interface or receive user input. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: User interface from service in .Net
    ... Yes, I know it is not recommended, but there are times when we need this, even if only for limited periods of time. ... you CAN allow it to interact with the ... If you need to display a UI, you can create a seperate Windows Forms application, which interacts with the service through remoting or some other IPC mechanism. ...
    (microsoft.public.dotnet.framework)
  • Re: User interface from service in .Net
    ... you CAN allow it to interact with the ... Services should not be designed to display a graphical user interface. ... If you need to display a UI, you can create a seperate Windows Forms application, which interacts with the service through remoting or some other IPC mechanism. ...
    (microsoft.public.dotnet.framework)
  • Re: ChangeDisplaySettingsEx & EnumDisplaySettingsEx
    ... The service uses the local system account and is set to "Allow service to ... (which is set to interact with the desktop) ... display devices and monitors and b) configure the display settings using ... Also, be aware that in Vista and after, services run in their own session ...
    (microsoft.public.vb.general.discussion)
  • Re: Doing work after the window has displayed.
    ... you will need to use a separate thread to do the ... Otherwise your users cannot interact with the form once the process starts. ... > MyForm mf = new MyForm; ... > doesn't display before processing starts. ...
    (microsoft.public.dotnet.framework.windowsforms)