473,670 Members | 2,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unstoppable Service

Hi,
I'm developing a service that will be monitoring some of the
activities of currently logged in user.
one of the requirement is that the service must be unstoppable. The
user (any user even admin)
should be unable to stop/terminate the service. Is there any way? or
should I go for a normal
other than service? Any recommendations are appreciated.
thanks

Apr 28 '07 #1
4 2457
Why don't you make two sepperate services who "guard" eachother? So if one is
stopped, it will be started by the other.

Regards,

Joost

"mk******@gmail .com" wrote:
Hi,
I'm developing a service that will be monitoring some of the
activities of currently logged in user.
one of the requirement is that the service must be unstoppable. The
user (any user even admin)
should be unable to stop/terminate the service. Is there any way? or
should I go for a normal
other than service? Any recommendations are appreciated.
thanks

Apr 28 '07 #2
Hi VLNL,

there r some info related to your ques:

http://www.mcse.ms/archive/index.php/t-684650.html
http://www.informit.com/articles/art...&seqNum=2&rl=1

WBR, Alex Meleta
Blog:: devkids.blogspo t.com

VWhy don't you make two sepperate services who "guard" eachother? So
Vif one is stopped, it will be started by the other.
V>
VRegards,
V>
VJoost
V>
V"mk******@gmai l.com" wrote:
V>
>Hi,
I'm developing a service that will be monitoring some of the
activities of currently logged in user.
one of the requirement is that the service must be unstoppable. The
user (any user even admin)
should be unable to stop/terminate the service. Is there any way? or
should I go for a normal
other than service? Any recommendations are appreciated.
thanks

Apr 28 '07 #3
Honestly I never tried, but shouldn't setting ServiceBase.Can Stop = False do
the job?

Regards

Jochen

<mk******@gmail .comwrote in message
news:11******** **************@ y80g2000hsf.goo glegroups.com.. .
Hi,
I'm developing a service that will be monitoring some of the
activities of currently logged in user.
one of the requirement is that the service must be unstoppable. The
user (any user even admin)
should be unable to stop/terminate the service. Is there any way? or
should I go for a normal
other than service? Any recommendations are appreciated.
thanks

Apr 28 '07 #4

"VLNL" <VL**@discussio ns.microsoft.co mwrote in message
news:8B******** *************** ***********@mic rosoft.com...
Why don't you make two sepperate services who "guard" eachother? So if one
is
stopped, it will be started by the other.

Regards,

Joost

"mk******@gmail .com" wrote:
>Hi,
I'm developing a service that will be monitoring some of the
activities of currently logged in user.
one of the requirement is that the service must be unstoppable. The
user (any user even admin)
should be unable to stop/terminate the service. Is there any way? or
should I go for a normal
other than service? Any recommendations are appreciated.
thanks
As I recall, one could only do this with a C# NT service. Using VB.Net, it
was a read only property. That was .NET 2003. It may have changed for 2005.

http://msdn2.microsoft.com/en-us/lib...op(VS.80).aspx

Apr 28 '07 #5

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

Similar topics

9
7007
by: Hardy Wang | last post by:
Hi all: I read an article from http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp about how to install a windows service programmatically. Based ont the code sample, it provides the feature to install service under LocalSystem account. What I need is to install service under some other certian account. By further studying the code, and MSDN...
7
712
by: Mike | last post by:
I want to create a windows service that will monitor another window service. what i need for the service to do is, if a service is stopped I need it to start the service back up example: service 1 - my service watches service 2 - windows service service 2 is stopped - service 1 starts service 2
9
7252
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service stopping. Please advise how to stop the service. Thanks, SP
3
56973
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I want to test this service on a Windows Server 2003 box that doesn't have the Visual Studio Command prompt. How do I go about installing the service on the Windows Server 2003 box? Thanks!
2
4673
by: letibal | last post by:
Hello, I have written a windows service and created an installer for it. The service runs under the system accounts. When started, it launches a GUI. By default, the InteractiveProcess property of the service is not set (this can be checked by right-clicking on the service in the Services window (Admin tools>Services), choosing Properties, LogOn tab). In order to enable my service to launch a GUI at startup, I added the following lines...
4
3175
by: kkt49 | last post by:
# vim: et sw=4 ts=8 sts from wxPython.wx import * import sys, os, time import pywintypes import win32serviceutil import win32service import win32event import win32process
4
21717
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a webserver to see if service A needs to be updated. What service B does if it sees their is an update for service A is to download a new copy of the service A executable, stop service A, replace the executable with the new copy, and start service B...
20
6737
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1 xxx = new localhost.Service1(); localhost is not recognized by the compiler.
5
3296
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
8386
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
8903
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
8814
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
8661
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7419
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...
0
5684
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
4211
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...
1
2800
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
1794
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.