windows service + vb.net + windows 2003

N

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?
 
P

Phill W.

Nick said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top