Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / August 2005



Tip: Looking for answers? Try searching our database.

Create Reg Key With Write Permissions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthew Hanna - 25 Aug 2005 14:58 GMT
Hello!  Is there a way to create a registry key/value in
HKEY_CLASSES_ROOT with write permissions granted to everyone for that
one key/value?  I can create the key/value no problem but when I want to
change it as a non-admin user I don't have permission.  Any fixes for
this?  I am using VB6 SP6 in Windows XP.

Thanks!
Matthew Hanna
Mark Yudkin - 30 Aug 2005 07:06 GMT
You'll need to set a suitable DACL on the new key when you create it, this
being the 7th parameter to the RegCreateKeyEx API you are presumably already
using.

Note that normally non-administrative users do not have the rights to do
this for subkeys of HKEY_CLASSES_ROOT. There are no "fixes" for this, as it
isn't a problem - if your administrator says no (accepts the lock-down
default), then he means it.

> Hello!  Is there a way to create a registry key/value in HKEY_CLASSES_ROOT
> with write permissions granted to everyone for that one key/value?  I can
[quoted text clipped - 4 lines]
> Thanks!
> Matthew Hanna
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.