[cifs-protocol] [REG:110052070326491] MS_RRP: Question on Symbolic Links

Andreas Schneider mail at cynapses.org
Tue May 25 02:46:15 MDT 2010

On Monday 24 May 2010 23:58:34 Hongwei Sun wrote:
> Andreas,

Hello Hongwei,
>    When you open the key with REG_OPTION_LINK flag set, the server will
> return the handle to the source key.  With a valid handle, client should
> be able to update the target of the symbolic link by changing the value of
> SymbolicLinkValue and also delete the key that is referenced by the
> handle.   As explicitly pointed out in, the SymbolicLinkValue for
> target link should contain Fully Qualified Name(, which is
> something like HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices.   It is not in
> the kernel mode string such as \registry\machine\system\MountedDevice.
>    How do you delete the value "SymbolocLinkVallue" ?  using
> BaseRegDeleteValue as per MS-RRP?  What do you mean by "it didn't
> work" ?    Do you mean that the value is not deleted or any error is
> returned ?

I'm able to delete the value but not the key. I'm running this test against 
Windows 2008. Here is some pseudo code.

/* create link */


CreateKey("SOFTWARE\torture_test\link", REG_OPTION_CREATE_LINK | 
SetValue("SymbolicLinkValue", "SOFTWARE\torture_test\target")

/* delete link */
OpenKey("SOFTWARE\torture_test\link", REG_OPTION_OPEN_LINK | 
DeleteKey("SOFTWARE\torture_test\link") --> fails with WERR_ACCESS_DENIED


	-- andreas

More information about the cifs-protocol mailing list