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

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 1131
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
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
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
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
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
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
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
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
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
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
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
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
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...

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.