473,498 Members | 891 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

About Windows Services

I want to run a service at the background but also provide some user
interface for editing some configuration options. In this regard, my
questions are:

1. Can a Windows Service have a UI along with it?
2. Can I associate a NotifyIcon (systray icon) with a Web service?
3. Can a Windows service be such that it runs only on a particular
Windows account on the domain? I mean can it use Windows Authentication
to see if it must start up on a particular login or not?

Jun 8 '06 #1
4 1145
my replies below
I want to run a service at the background but also provide some user
interface for editing some configuration options. In this regard, my
questions are:
1. Can a Windows Service have a UI along with it?
No in general, service is not appropriate for UI, besides it breaks security
design.
Willy has more to say about this, it's his area, see there for example
http://groups.google.com/group/micro...b8559c0936aa07
You can create UI and service separately and communicate between them
2. Can I associate a NotifyIcon (systray icon) with a Web service?
You app shold have any visual form to became systray icon. If you wrote a UI
wrapper for WS then you can minimize it to tray
3. Can a Windows service be such that it runs only on a particular
Windows account on the domain? I mean can it use Windows Authentication
to see if it must start up on a particular login or not?


In the property of service you can specify under with account it should start

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Jun 8 '06 #2
> 2. Can I associate a NotifyIcon (systray icon) with a Web service?
Sorry. That was a typo. The second question is:

2. Can I associate a NotifyIcon (systray icon) with a Windows service?

Jun 8 '06 #3
Water Cooler v2 wrote:
I want to run a service at the background but also provide some user
interface for editing some configuration options. In this regard, my
questions are:


[...]

Generally the best solution is to create the service without UI parts
and instead create a separate application to run in the users logon
sessions and some kind of IPC mechanism (e.g. pipes or sockets) between
the UI and the service.

This way you can support multiple logon sessions, such as Fast User
Switching in XP, Terminal Services and Remote Desktop for Administration
on Windows Servers and the new logon sessions on Vista. If you choose to
create the UI directly in an interactive service it can only interact
with the console session, session 0, and this session is not visible on
Vista.

--
Olof Lagerkvist
ICQ: 724451
Web: http://here.is/olof

Jun 8 '06 #4
Others have given you answers to your questions, but I'm just wondering if a
service is really what you want. Your questions seems to indicate that you
want something that starts automatically when someone logs on (with a
systray icon, UI etc). If so, a service is not what you're looking for. Use
a normal application instead and put a setting in the registry to start it
automatically when someone logs on.

/claes

"Water Cooler v2" <wt*****@yahoo.com> wrote in message
news:11**********************@f6g2000cwb.googlegro ups.com...
I want to run a service at the background but also provide some user
interface for editing some configuration options. In this regard, my
questions are:

1. Can a Windows Service have a UI along with it?
2. Can I associate a NotifyIcon (systray icon) with a Web service?
3. Can a Windows service be such that it runs only on a particular
Windows account on the domain? I mean can it use Windows Authentication
to see if it must start up on a particular login or not?

Jun 8 '06 #5

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

Similar topics

8
2276
by: Will | last post by:
I just discovered Python and looked briefly at one of the tutorials for beginners... It looks a lot like the old Command line Basic... I'm sure it does much more but... 1 - Can you create...
0
2876
by: Stefan Hinz | last post by:
Degan, jumping in to try and solve some problems that look pretty obvious to me ... > #options for default service (mysqld2) > (mysqld2) It should be , not (mysqld2).
4
7104
by: Bill Sonia | last post by:
I'm written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that once my send mail code is...
8
4159
by: Bill Sonia | last post by:
I've written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that for OnShutDown, once my...
6
1805
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows...
2
1232
by: Ed Staffin | last post by:
Hi all, I sent this the other day but got no responses, so, I thought I would try again. I am thinking about the next version of my application (it's an accounting app) and it would seem that web...
1
2626
by: Jeff | last post by:
Hey IDE: VS .NET 2005 #1 I want to start developing web parts in visual studio 2005 and are wondering where is the latest version of the web part templates. I did find this download (the...
2
4457
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
1
4824
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
0
30173
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
6998
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...
1
6884
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...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5460
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,...
1
4904
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...
0
4586
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...
0
3090
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
1416
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 ...
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.