473,661 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can a windows sevice have a User interface

Hello everyone.

Pardon me for my basic questions about windows services..

Is a windows service a stand alone system with no interaction with
outside environment?

Can a windows sevice have an interface which it can use as an output?

Can a windows service take user parameters before/while running?

Thanks for any help.
BS

Sep 29 '06 #1
3 1363
Hello, Suman!
You wrote on 29 Sep 2006 12:22:56 -0700:

SHello everyone.

SPardon me for my basic questions about windows services..

SIs a windows service a stand alone system with no interaction with
Soutside environment?

Yes, and no. Windows services can interract with each other and other
application via
any IPC .

SCan a windows sevice have an interface which it can use as an output?

Yes, if service is interactive then it can create its own window.
But it is not recommended way to display service output. Generally
you develop windows service and ordinary application. This app communicates
with the service via IPC ( socket, named pipes, files, etc ).

SCan a windows service take user parameters before/while running?
Yes it can.

--
With best regards, Vadym Stetsyak.
Blog: http://vadmyst.blogspot.com
Oct 1 '06 #2
Vadym Stetsyak wrote:
Hello, Suman!
You wrote on 29 Sep 2006 12:22:56 -0700:

SHello everyone.

SPardon me for my basic questions about windows services..

SIs a windows service a stand alone system with no interaction with
Soutside environment?

Yes, and no. Windows services can interract with each other and other
application via
any IPC .

SCan a windows sevice have an interface which it can use as an output?

Yes, if service is interactive then it can create its own window.
But it is not recommended way to display service output. Generally
you develop windows service and ordinary application. This app communicates
with the service via IPC ( socket, named pipes, files, etc ).
One caveat is that services can only be interactive if they run under
the Local System account. Also, Microsoft now strongly recommends
against this practice as there are security problems involved.

http://support.microsoft.com/kb/327618/

>
SCan a windows service take user parameters before/while running?
Yes it can.
Part of the service setup includes a set of parameters that are passed
to the service just like command line parameters.
>
--
With best regards, Vadym Stetsyak.
Blog: http://vadmyst.blogspot.com

Adam Ruth
Oct 1 '06 #3
I usually create a windows service without a user interface (because that's
the standard.)
Then I create a windows forms application that can configure the windows
service via a common configuration file.
The windows app writes to the configuration file and the windows service
reads from it to determine its parameters.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Suman" <ge********@gma il.comwrote in message
news:11******** **************@ i3g2000cwc.goog legroups.com...
Hello everyone.

Pardon me for my basic questions about windows services..

Is a windows service a stand alone system with no interaction with
outside environment?

Can a windows sevice have an interface which it can use as an output?

Can a windows service take user parameters before/while running?

Thanks for any help.
BS

Oct 2 '06 #4

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

Similar topics

5
6357
by: Andrei | last post by:
Hello, I posted yesterday the same problem, but now I want to be more specific about it. My intention is to create a windows service to process some Word documents. If I use CreateObject to create a reference to a Word object everything is working fine. If I use GetObject to get a reference to Word object (of
0
2308
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the example source code can be downloaded here: http://www.blogitek.com/timhaughton/archives/files/User%20Interrogator%20And%20TDD.zip The article text is below. Not sure what it will do to the formatting when
6
4750
by: AMP | last post by:
I am trying to write a windows sevice that will send emails. The data is stored in a database and the service scans the database for new entries It work well as a stardard windows app, but when you make is a service it all works except it will not sent the emails Attached is the public sub that should run, its the same code that in the stardard winform, both app's are using Threads
0
1045
by: sriNani | last post by:
Whats the diff bitween console app performance and windows sevice performance..? which can suggestable to follow from .net 2005?
1
15211
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they can no longer connect to the domain controller. Ping resolves the domain controllers name to the correct ip nslookup finds the ip but can not resolve the name. When I attempt to log on to a machine on the domain it takes around twenty minutes...
2
2541
by: skumardss | last post by:
Hi Techees... We have a Windows C# Application (Business Layer) which does communicate between the User Interface Layer and Data Layer. We need to convert this application to a Windows Service. We tried creating Windows Service Application in .NET framework and refered the dll of the Business Layer and then invoked the main method of the Busines Layer within the OnStart event of the Service Application. Once after doing this we were able...
1
3611
by: skumardss | last post by:
Hi Techees... We have a Windows C# Application (Business Layer) which does communicate between the User Interface Layer and Data Layer. We need to convert this windows application to a Windows Service. We tried creating Windows Service Application in .NET framework and refered the dll of the Business Layer and then invoked the main method of the Busines Layer within the OnStart event of the Service Application. Once after doing this we...
1
2084
by: tarunsingh19 | last post by:
pls anybody tell me wether oracle 8i can be installed in windows xp sevice pack 2?or will it work in XP2, if yes then where we get this software free download file?
0
8341
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
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...
1
8542
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6181
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
5650
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
4177
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2760
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
2
1740
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.