Home All Groups Group Topic Archive Search About

windows service + vb.net + windows 2003

Author
19 Oct 2006 8:48 AM
Nick Chan
hello, i have created a .net windows service


this service will run external programs, and make it show. i use
user32's showWindow to show it


it works in windows XP


however in Windows2003, it can only run, but not show the external
program.the executed program runs hidden !

is there somekind of security policy settings i need to adjust for this
windows service?

Author
19 Oct 2006 12:32 PM
Phill W.
Nick Chan wrote:
> i have created a .net windows service

> this service will run external programs, and make it show.

I would suggest that's a Bad Idea.

> in Windows2003, it can only run, but not show the external
> program.the executed program runs hidden !

Probably because the external program is running on a virtual desktop
that /nobody/ can get to.  That's why it's a very. /very/ bad idea to
issue any sort of dialog from a Windows Service.  :-)

> is there somekind of security policy settings i need to adjust for this
> windows service?

In current versions of Windows, you can configure the Service to
"interact with the Desktop", but /only/ if it runs under the local
System account.

As I understand it, this "interact with desktop" option /does not exist/
in Windows Vista.

Regards,
    Phill  W.