Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / September 2005

Tip: Looking for answers? Try searching our database.

Interact With Desktop Service installation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ThunderMusic - 19 Sep 2005 14:10 GMT
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
William DePalo [MVP VC++] - 19 Sep 2005 17:36 GMT
>    I created a service application. This service, can possibly start other
> applications or display message boxes, so it needs to interact with the
[quoted text clipped - 3 lines]
> 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?
ThunderMusic - 20 Sep 2005 02:42 GMT
> 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
William DePalo [MVP VC++] - 20 Sep 2005 15:44 GMT
>> 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/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 - 21 Sep 2005 23:53 GMT
ok, I'll look into that...  Thanks a lot...

> >> P.S. You do know that running a service like this opens you up to the
> >> Shattered Windows attack, yes?
[quoted text clipped - 12 lines]
> Regards,
> Will

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.