473,396 Members | 1,917 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,396 software developers and data experts.

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 1578
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 ServiceInstaller.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.Process.

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*******@hotmail.dewrote in message
news:11**********************@p79g2000cwp.googlegr oups.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*******@hotmail.dewrote in message
news:11**********************@p79g2000cwp.googlegr oups.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
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...
15
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...
3
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...
3
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....
8
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...
8
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...
4
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...
2
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...
9
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.