title: List permissions from a shared folder using .net
body: <p>I've been thinking to create an app that lists the shared folders from a server, ie: I input the host and then it will give me the list of shared folders from that server, plus give me the users and groups that can access that folder.</p>
  
  <p>I know I can get the list of shared folders from:<BR>
  <strong>Registry:</strong><BR>
  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Shares<BR>
  <strong>WMI:</strong><BR>
  SELECT * FROM win32_share</p>
  
  <p>And the security from:<BR>
  <strong>Registry:</strong><BR>
  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Shares\Security<BR></p>
  
  <p>More info about it:<BR>
  <a href="http://technet.microsoft.com/en-us/library/cc781716%28v=ws.10%29.aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/cc781716%28v=ws.10%29.aspx</a></p>
  
  <p>I can get that information by opening a remote share like \\10.10.10.5 and it will shows on explorer the list of shared folders, if I have access then I can simple do a right click and hit properties, then it will give me what I need, but I need this programatically.</p>