473,473 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Sep 19 '05 #1
4 1425
"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?
Sep 19 '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
Sep 20 '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
Sep 20 '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

Sep 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: decrypted | last post by:
I want my users to be able to specify where thier configuration files are located for a windows service. Since having startup params don't seem to be a real option here I want to use the...
0
by: Theresa Smallwood | last post by:
I am having some trouble with a windows service I am trying to install. It builds just fine, but when I try to install it using an MSI created from a ..NET setup project, I get this error: ...
0
by: jaydfischer | last post by:
I have created an install package and I need to install a .config file in the system32 directory but the only option that I get in the folder property is Application folder, User's Desktop or...
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...
1
by: Al | last post by:
Hi - I have a interesting issue that I am trying to resolve with a Windows Service I created. I am trying to allow the end-user to install multiple copies of the service on the same server (think...
1
by: 1Cajun | last post by:
I have an Administration form that I would like to use to not only set some variables for the service but also install and start and stop the service. I have created an install project and can...
6
by: Jason Richmeier | last post by:
I have encountered a problem with the installation of a Windows service. I know I have done this in the past so I am at a loss as to what I might be doing wrong. When I create a setup project...
1
by: 511 | last post by:
I have written a Windows service which is consuming a webservices. When i am trying ti install the windows service using installutil.exe it gives me an errorr:- Exception occured while...
3
by: Mika M | last post by:
I'm programming quite simple Windows Service using C# 2005. I also made setup for it into same solution. When I run setup to install service, it's going fine into C:\Program Files\MyCompany\My...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.