473,770 Members | 1,661 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enable a service for interaction with the desktop

Hi! I've been trying to figure out how to enable desktop interaction
support for windows services from within my vb.net code desperatly, but
wasnt able to find anything useful. Does anyone know how to do this?

Thanks in advance for your help!

Aug 4 '06 #1
3 1602
screwy schrieb:
Hi! I've been trying to figure out how to enable desktop interaction
support for windows services from within my vb.net code desperatly, but
wasnt able to find anything useful. Does anyone know how to do this?

Thanks in advance for your help!
Well, writing this post helped me a great deal modifying my search
phrase to finally find something useful:
there's a thread in
http://groups.google.de/group/micros...nguages.csharp
dealing with this problem. Here's the link to it:
http://groups.google.de/group/micros...373d0c48851f22

Aug 4 '06 #2
It can be done via the ServiceInstalle r.vb -- but "supposedly " Microsoft are
not going to support his option in Vista (we shall see). But I recommend
that you avoid using Interact with Desktop as it is NOT reliable if your
service shells or uses Diagnostics.Pro cess.

The irony is that Microsoft's Auto update service uses some undocumented
"features" that don't seem to be available to anyone else without really
digging deep (and I do mean deep).

Good luck, but if you can avoid any interface interaction via your service,
that really is the more stable/predictable and future proof route. My
personal belief is that this is just BS on a stick as and "interface" exists
as soon as the freakin' windows logo is displayed (but the Microsoft fan
boys will somehow argue this is not an interface so don't believe your eyes
and start subscribing to a religion). this limitation in Vista is there as
a non-intelligent blanket approach to attempt to make the OS more secure.
M$ are going about it the 1/2 half-ass lazy way -- as usual.

And I'm trying to be nice to Microsoft about this topic.

"screwy" <sc*******@hotm ail.dewrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
screwy schrieb:
>Hi! I've been trying to figure out how to enable desktop interaction
support for windows services from within my vb.net code desperatly, but
wasnt able to find anything useful. Does anyone know how to do this?

Thanks in advance for your help!

Well, writing this post helped me a great deal modifying my search
phrase to finally find something useful:
there's a thread in
http://groups.google.de/group/micros...nguages.csharp
dealing with this problem. Here's the link to it:
http://groups.google.de/group/micros...373d0c48851f22

Aug 4 '06 #3
Please don't do this ... MS has been saying for years to not do this is 99%
of circumstances but isntead to create a client app that interacts with the
service as doing this opens a massive security hole, see
http://www.google.com/search?hl=en&lr=&q=shatter+attack for more
information.

With windows vista your user won't be logged into session 0 ...

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

"screwy" <sc*******@hotm ail.dewrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
screwy schrieb:
>Hi! I've been trying to figure out how to enable desktop interaction
support for windows services from within my vb.net code desperatly, but
wasnt able to find anything useful. Does anyone know how to do this?

Thanks in advance for your help!

Well, writing this post helped me a great deal modifying my search
phrase to finally find something useful:
there's a thread in
http://groups.google.de/group/micros...nguages.csharp
dealing with this problem. Here's the link to it:
http://groups.google.de/group/micros...373d0c48851f22

Aug 4 '06 #4

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

Similar topics

1
5690
by: Artur Kowalski | last post by:
I have a NotifyIcon in my Windows Service project and I am trying to add a ContextMenu to this NotifyIcon or use some of the mouse events. Everything isn't working. I think so base class of the service System.ServiceProcess.ServiceBase don't catchWindows messages like mouse or timer messages. Any Idea? Thanks,
15
2145
by: Chakkaradeep | last post by:
Hi all, i have written a Service,now i want to execute another application (for eg;calc.exe) in the service....how will i perform it??... i tried using this.... /**************Executing a Process code starts here**************/ System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents=false;
3
4612
by: Lubomir | last post by:
Hi, I read that interactive windows services will not be allowed to run under Wista. I would like to ask what exactly is the interactive service. It is supposed to be a service that communicates with desktop. What about the following scenario: A service will create a thread. This thread will create and run an UI Windows application that manages task bar and so on on a desktop. This application will communicate with the service: a/ by...
3
14355
by: Vitaly Zayko | last post by:
Is it possible to attach a form (C# .NET 2) to windows service and show it in OnStart event? When I tried to do this in general (new, Show()) way it just didn't do anything nor gave me any errors. I want to use this form for interaction with the service. Thanks! Vit Zayko
8
2673
by: Rob R. Ainscough | last post by:
I have a VS 2005 Windows Service with a Installer project as part of my solution. The Service installs fine but I can't seem to make either of these work: 1. Have the service start after install 2. Have the service interact with the SysTray In my ProjectInstaller.vb Private Sub ServiceInstaller1_AfterInstall(ByVal sender As
8
1195
by: pigeonrandle | last post by:
Hi, I am writing a server application and would like to know what you experts think i should write it as. I would like (ie need) it to have a visual interface, hence the question, "Should i write it as a service and then provide another program that displays information on what's going on", or, "should i simply write it as a multi-threaded asynchronous socket beast GUI"?! I like the second option (mainly because it will involve less...
4
5258
by: Don Curtis | last post by:
If I use GDI+ within a service, what problems can I expect? Why can't GDI+ be used within a service? http://msdn2.microsoft.com/en-us/library/system.drawing.aspx "Classes within the System.Drawing namespace are not supported for use within a Windows or ASP.NET service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time...
2
2291
by: =?Utf-8?B?c3lzdGVtQ29uc3VsdGFudA==?= | last post by:
Can I use EnumchildWindows from a windows service to find the IE windows and Solitaire windows belonging to the logged on user? And if so then I'll need to know what call to use to get the users desktop window handle to enum them - Assuming GetDesktopWindow doesn't at this point. I can do all this in a Forms application (trying to convert to service) but as a service it simply doesn't think there are any of those windows open.
9
3478
by: Yasir Zaheer | last post by:
I have made a windows service which is configured to start automatically at the system startup under the USER account type. The service is working perfectly fine when I try to start it manually, but it is unable to start automatically at system restart and following errors are displayed in the Event Logs. 1 - Timeout (30000 milliseconds) waiting for the (Service Name) service to connect. 2 - The (Service Name) service failed to start...
0
9595
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10232
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8891
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7420
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3974
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 we have to send another system
3
2822
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.