views:

98

answers:

0

Hi

I have to set permissions on a DFS Link with C#. (For adding a DFS Link I used the method NetDfsAdd from the NetApi32.dll. ) After a while searching I found the MSDN Article[0] about NetDfsSetInfo and it describes that I can use this function to set the permissions. But I am a bit confused about DFS_INFO_107 Structure[1] and SECURITY_DESCRIPTOR[2] because I don't know how I am implementing this unmanaged Code in my C# application. Have anyone already implemented such a code to set permissions on a DFS Link?

[0] http://msdn.microsoft.com/en-us/library/bb524823(v=VS.85).aspx [1] http://msdn.microsoft.com/en-us/library/bb736243(v=VS.85).aspx [2] http://msdn.microsoft.com/en-us/library/aa379561(v=VS.85).aspx