473,320 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Interact With Desktop Service installation

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
4 1226
"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.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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Helene Day | last post by:
I did a window service and I wish to have the "Allow service to interact with desktop" option checked. How do I do this programmatically? Thanks in advance for your help.
0
by: Bob Sanford | last post by:
I am working with php scripting under an apache-based web service in Windows. The "allow service to interact with desktop" feature is NOT checked for this service, and I don't want it to be. But I...
4
by: ThunderMusic | last post by:
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...
6
by: Ian Frawley | last post by:
Hello everyone I have written a Windows Service to monitor local and remote Processes/Applications. However I am stuck because if it is installed as a user account I cannot get it to interact...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
4
by: Curt Emich | last post by:
I recently bought a copy of Visual C#.NET Deluxe Learning addition. I was under the impression that this comes with SQL Server Desktop Engine. I installed everything I should have (I think), but...
10
by: Steve | last post by:
I want to make a web application that will run on my home server and would like to be able to have the web application interact with another, winforms application. For example, let's say I wanted...
0
by: Loane Sharp | last post by:
Hi there When I install my windows service at runtime, I include the following code to let my windows service interact with the desktop: Dim ckey As RegistryKey =...
0
by: Ramya A | last post by:
Hi All: I have a VB.NET web service and while debugging the service from a web form within the webservice solution project, Iam displaying the returned value from the webservice to the console...
2
by: pvenkatesh2k4 | last post by:
hi i am new to .net development, i have created a service which has forms to interact with user. now before starting the service , i need to change the property of service to interact with...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.