Re: Can a service be installed and hidden?
- From: "Andy" <aadiabo@xxxxxxxxxxxxx>
- Date: Tue, 11 Jul 2006 02:35:13 -0400
Hi Remy,
Thanks for the input. Although I don't want the users to be able to stop the
service, I still need to be able to uninstall the service such as when
uninstalling the program. I was thinking of adding a password to the OnStop
event but I can't seem to be able to do this gracefully or successfully. If
there are resources out there that you are aware of, I would appreciate it
if you could forward them to me. Your help is greatly appreciated and I
thank you in advance.
Andy
"Remy Lebeau (TeamB)" <no.spam@xxxxxxxxxxx> wrote in message
news:44b3401f$1@xxxxxxxxxxxxxxxxxxxxxxxxx
"Andy" <aadiabo@xxxxxxxxxxxxx> wrote in message
news:44b31de0$1@xxxxxxxxxxxxxxxxxxxxxxxxx
I'm trying to create an Audit Trail application required for a
project that logs every file action in the computer.
You do not need to hide a service for that. And besides, NT-based OS
versions already have a built-in audit log anyway. Your application can
use
ReportEvent() to add messages to the logs that appear in the built-in
Event
Log viewer.
But its useless if someone can just stop the service from the ControlPanel.
It is very easy for a service to prevent the user from stopping it.
Assuming you are using TService, simply set the Stopped parameter to false
in its OnStop event. You should also set the Win32ErrCode property, such
as
to ERROR_ACCESS_DENIED, so that the action is logged and the user can see
why the service would not stop.
Gambit
.
- Follow-Ups:
- Re: Can a service be installed and hidden?
- From: Remy Lebeau \(TeamB\)
- Re: Can a service be installed and hidden?
- From: Matthew Jones
- Re: Can a service be installed and hidden?
- From: madshi (Mathias Rauen)
- Re: Can a service be installed and hidden?
- References:
- Can a service be installed and hidden?
- From: Andy
- Re: Can a service be installed and hidden?
- From: Jerry Hayes
- Re: Can a service be installed and hidden?
- From: Andy
- Re: Can a service be installed and hidden?
- From: Remy Lebeau \(TeamB\)
- Can a service be installed and hidden?
- Prev by Date: Re: Can a service be installed and hidden?
- Next by Date: Re: Can a service be installed and hidden?
- Previous by thread: Re: Can a service be installed and hidden?
- Next by thread: Re: Can a service be installed and hidden?
- Index(es):
Relevant Pages
|