[DUG] Windows Services

Eion McIntosh (Christchurch) e.mcIntosh at ppcs.co.nz
Wed Nov 22 17:02:45 NZDT 2006


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20061122/b14a64da/attachment.html


More information about the Delphi mailing list