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

Reply via email to