>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