Groups | Blog | Home
all groups > vb.net controls > september 2005 >

vb.net controls : Interact With Desktop Service installation


William DePalo [MVP VC++]
9/19/2005 12:00:00 AM
[quoted text, click to view]

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?

ThunderMusic
9/19/2005 9:10:48 AM
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

ThunderMusic
9/19/2005 9:42:02 PM
[quoted text, click to view]
opens to the What?

thanks

William DePalo [MVP VC++]
9/20/2005 10:44:54 AM
[quoted text, click to view]

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/misc/ShatterAttack_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

ThunderMusic
9/21/2005 6:53:52 PM
ok, I'll look into that... Thanks a lot...

"William DePalo [MVP VC++]" <willd.no.spam@mvps.org> a écrit dans le message
de news:uv9keHfvFHA.1560@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button