Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win32API's RegCreateKeyEx with NT Security
Message
From
07/04/2000 13:50:38
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00356821
Message ID:
00356995
Views:
12
>Dear all,
>
>I must apologise, I accidentally posted this message under ActiveX. I'm sorry I have to post it again, I hope this doesn't offend anybody.
>
>Ben
>
>
>Dear All,
>
>Could someone please tell me the value to set LPSECURITY_ATTRIBUTES to if I wish all Windows Nt 4.0 SP6 users to have access to a registry key created through my VFP6.0 SP3 application?
>
>I am using the RegCreateKeyEx() function in Win32API.
>

This is almost certainly an issue of where you write in the registry rather than the security rights mask. If you're writing to the hive HKEY_CURENT_USER, then it's only visible as HKEY_CURRENT_USER to the currently logged-in UserID. Either have other people access it under the appropriate originating user in the hive HKEY_USERS, or write to a hive that is invriant by user such as HKEY_LOCAL_MACHINE.

>At the moment I am passing the value 63, this results in only my account having access to the created key, the value 0 does likewise.
>
>I would be very grateful for any advice provided.
>
>Many thanks in advance,
>
>Regards,
>
>Ben Sugden
>
>PS: Does anyone know of any better Win32
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform