By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Interact With Desktop Service installation

P: n/a
Hi,
I created a service application. This service, can possibly start other
applications or display message boxes, so it needs to interact with the
desktop. The question is the following : How can I make the "interact with
the desktop" checkbox checked automaticaly when my service is installed? I
looked at the ServiceInstaller and ServiceProcessInstaller classes, but none
give me this option (or maybe I didn't see it).

Thanks

ThunderMusic_80
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"ThunderMusic" <NO*******@sympatico.caSPAMATALL> wrote in message
news:uy**************@TK2MSFTNGP15.phx.gbl...
I created a service application. This service, can possibly start other
applications or display message boxes, so it needs to interact with the
desktop. The question is the following : How can I make the "interact with
the desktop" checkbox checked automaticaly when my service is installed? I
looked at the ServiceInstaller and ServiceProcessInstaller classes, but
none
give me this option (or maybe I didn't see it).


If no one suggests a .Net way of doing this you can check the docs for the
native functions OpenSCManager(), ChangeServiceConfig() and
CloseServiceHandle() and use Platform Invoke services to call them from your
managed code.

Regards,
Will

P.S. You do know that running a service like this opens you up to the
Shattered Windows attack, yes?
Nov 21 '05 #2

P: n/a
> P.S. You do know that running a service like this opens you up to the
Shattered Windows attack, yes?

opens to the What?

thanks
Nov 21 '05 #3

P: n/a
"ThunderMusic" <NO*******@sympatico.caSPAMATALL> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
P.S. You do know that running a service like this opens you up to the
Shattered Windows attack, yes?

opens to the What?


The Shatter Attack (aka Shattered Windows) decribes a vulnerability used by
spyware/viruses/malware to elevate privilege in order to do bad things
behind your back:

http://www.csnc.ch/static/download/m...ttack_CSNC.pdf

If you are not _very_ careful you put your system at risk when you run a
service that can interact with the desktop.

Regards,
Will
Nov 21 '05 #4

P: n/a
ok, I'll look into that... Thanks a lot...

"William DePalo [MVP VC++]" <wi***********@mvps.org> a écrit dans le message
de news:uv**************@TK2MSFTNGP09.phx.gbl...
"ThunderMusic" <NO*******@sympatico.caSPAMATALL> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
P.S. You do know that running a service like this opens you up to the
Shattered Windows attack, yes?
opens to the What?


The Shatter Attack (aka Shattered Windows) decribes a vulnerability used

by spyware/viruses/malware to elevate privilege in order to do bad things
behind your back:

http://www.csnc.ch/static/download/m...ttack_CSNC.pdf

If you are not _very_ careful you put your system at risk when you run a
service that can interact with the desktop.

Regards,
Will

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.