[DUG] Windows Services

Jeremy Coulter vss at vss.co.nz
Wed Nov 22 18:15:12 NZDT 2006


Yes...thats what I meant. I typed my message in a hurry trying to get out
the door at work :-)

Jeremy 

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Dennis Chuah
Sent: 22 November 2006 18:05
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Windows Services


Its not you, but the user that the service runs under.  By default, this is
the SYSTEM user, which does not have many rights.  Try changing the
configuration of the service to a user with more rights.

----- Original Message -----
From: "Eion McIntosh (Christchurch)" <e.mcIntosh at ppcs.co.nz>
To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
Sent: Wednesday, November 22, 2006 5:02 PM
Subject: RE: [DUG] Windows Services


I do have rights to my pc, but it must be something else, because I managed 
to get a simple service running earlier this afternoon, but now I have made 
my main program I am getting the error.
I have tried commenting everything out so it appears to be the same as 
earlier this afternoon, but still getting an error.

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]On 
Behalf Of Jeremy Coulter
Sent: Wednesday, 22 November 2006 4:49 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Windows Services


its the old windows services permissions issue.
All you need to do is run the service as someone with administrator rights, 
or atleast with read access to the folder where the ini file is stored, and 
you should be ok.

Jeremy

  _____

From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On 
Behalf Of Eion McIntosh (Christchurch)
Sent: 22 November 2006 16:39
To: delphi at ns3.123.co.nz
Subject: [DUG] Windows Services



Hi

I am creating a new windows service for checking if some specific programs 
are running. When the service starts I want to read in a ini file with a 
list of programs to look for, but I am getting an Error 5 Access Denied when

is starts.

Can you read of text file for a service program and if so were should it be 
stored to be read? I've tried it under the WinNT and System32 and C: but 
still am getting the error? Running on Win2k.

Regards
Eion McIntosh
PPCS Ltd


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006





----------------------------------------------------------------------------
----


> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
> 

_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006
 





More information about the Delphi mailing list