title: Shared folder permission!
body: <p>I use this code to share folder:</p>
  
  <pre><code> Public Sub Share()
          Dim managementClass As New ManagementClass("Win32_Share")
          Dim inParams As ManagementBaseObject = managementClass.GetMethodParameters("Create")
          inParams("Description") = "My Description"
          inParams("Name") = "Share Name"
          inParams("Path") = "D:\Folder"
          inParams("Type") = &amp;H0
          Dim outParams As ManagementBaseObject = managementClass.InvokeMethod("Create", inParams, Nothing)
          If Convert.ToUInt32(outParams.Properties("ReturnValue").Value) &lt;&gt; 0 Then MessageBox.Show("Unable to share directory.")
          MessageBox.Show("Shared folder successfully!")
      End 
  Sub
  </code></pre>
  
  <p>Now what I want is to define user that can access to this folder through network?
  How I can do that? </p>
  
  <p>Thanks!</p>