Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic routine to return bios date
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00170611
Message ID:
00170628
Views:
16
>There is a definite issue with accessing the registry under NT. I have written a number of projects that read and write to the registry - these work perfect under W95 but will NOT work under NT??? I never got them working with NT. I didn't try very hard. Have a look at the registry class in the download section here.

There's nothing wrong with the registry functions, but there may be:

a) different keys under NT for certain system settings
b) security issues

Under NT registry keys are protected by user rights. This shouldn't be
a problem for standalone apps as long as the user has reasonable rights
and you're writing to the registry where you should (like the personal
keys HKEY_CURRENT_USER).

System keys require Administrator rights, so unless the user is logged
in with those rights you can't retrieve that information. Of course
the rights can be changed.

I just did a quick check on my NT Server installation and HKEY_LOCAL_MACHINE
is set with Read access for everyone, but no WRITE access, while Administrators
have full control.

I've run into this with a few Web apps where the impersonation is either
SYSTEM or IUSR_ causing problems with creating new registry keys.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform