Difference between revisions of "Registry"

From SambaWiki
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
  +
#REDIRECT [[Winreg]]
= Registry Secrets =
 
 
== REG_LINK ==
 
 
The MSDN docs describes REG_LINK as: "A null-terminated Unicode string that contains the target path of a symbolic link that was created by calling the RegCreateKeyEx function with REG_OPTION_CREATE_LINK."
 
 
Here’s the part that is not documented:
 
 
You have to set a special value called "SymbolicLinkValue" of type REG_LINK in the symbolic link key. The data associated with this special value is the target registry key to link to. The target registry key needs to be in kernel-mode registry syntax.
 
 
User-mode keys converted to kernel-mode:
 
 
* HKEY_LOCAL_MACHINE is converted to \\registry\machine.
 
* HKEY_USERS is converted to \\registry\user.
 
* HKEY_CURRENT_USER is converted to \\registry\user\user_sid, where user_sid is the Security ID associated with the user.
 
* HKEY_CLASSES_ROOT is converted to \\registry\machine\software\classes.
 
 
== Registry links ==
 
 
Original:
 
 
SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Print\\Printers
 
SYSTEM\\CurrentControlSet001
 
 
Links:
 
 
SYSTEM\\CurrentControlSet -> SYSTEM\\CurrentControlSet001
 
SYSTEM\\CurrentControlSet001\\Control\\Print\\Printers -> SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Print\\Printers
 

Latest revision as of 10:14, 18 May 2010

Redirect to: