Or you can set the service to run as a specific user... I think...


>From: "Jeremy Coulter" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
>Subject: RE: [DUG]:  NT Services and Registry
>Date: Mon, 12 Jul 1999 07:46:11 +1200
>MIME-Version: 1.0
>From [EMAIL PROTECTED] Sun Jul 11 12:49:53 1999
>Received: by mail.corporate.co.nz from localhost    (router,SLMail V3.2); 
>Mon, 12 Jul 1999 08:58:01 +1200
>Sender: [EMAIL PROTECTED]
>Message-ID:  <000301becbd6$0751bdf0$[EMAIL PROTECTED]>
>X-Priority:  3 (Normal)
>X-MSMail-Priority:  Normal
>X-Mailer:  Microsoft Outlook 8.5, Build 4.71.2173.0
>Importance:  Normal
>X-MimeOLE:  Produced By Microsoft MimeOLE V5.00.2014.211
>In-Reply-To:   <[EMAIL PROTECTED]>
>X-SLUIDL: 7983BA92-364711D3-8F9D0000-E853E28F
>
>Yes Tony, that was the problem. Ifound this after someone else made the 
>same
>suggestion.
>
>Cheers,
>Jeremy Coulter
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Tony Sinclair
> > Sent: Monday, July 12, 1999 7:26 AM
> > To: Multiple recipients of list delphi
> > Subject: Re: [DUG]: NT Services and Registry
> >
> >
> > Jeremy Coulter wrote:
> >
> > > HI all.
> > >
> > > well over the weekend I found a great little bit of code that
> > allows you to
> > > create NT Services.
> > > Basically it involves creating a new application, and replacing
> > the default
> > > form an unit with the ones that comes with this code I found,
> > and telling
> > > the project options to generate a console app.
> > > REALLY simple.
> > >
> > > I was happy, and it works really well.....form what I can
> > see.....BUT I have
> > > a whole lot of setting stored int he registry.
> > > I have/am porting a normal application over to an NT Service (now I 
>have
> > > code that works) and it relies on settings in the registry.
> > > But it SEEMS as if the NT Service I have created is NOT READING
> > THE REGISTRY
> > > !!
> > > Now it must be something I am doing, like looking at the Current User
> > > section of the registry, and not another part or something like
> > > that.........can anyone shed some light on this ??
> > >
> > > Thansk, Jeremy Coulter
> > > P.s. If you want the code that makes the NT Serve, let me know,
> > and I will
> > > email to you.
> > >
> >
> > Hi Jeremy,
> >
> > I have written a couple service apps in VB (sorry for swearing)
> > and services
> > can't see HKEY_CURRENT_USER.  Store all your settings in
> > HKEY_LOCAL_MACHINE.  I
> > just create a new key under the software key eg
> >
> > HKEY_LOCAL_MACHINE\Software\My Software\Stuff
> >
> >
> > Hope this helps
> >
> > Tony
> > --
> >
> >
> > Tony Sinclair
> > Christchurch
> > New Zealand
> >
> > "I like deadlines.  I especially like the
> > sound they make as they go wizzing by."
> >
> >
> > ------------------------------------------------------------------
> > ---------
> >     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> >
>
>
>---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to