title: Set directory permissions on Windows XP
body: <p>when you right-click on a file or directory in Windows XP and select 'properties' you get the usual windows properties pop-up. In this pop-up there are two places where you can set file permissions, the first, is in the 'Security' tab, which has checkboxes for 'Full Control', 'Modify', 'Read &amp; Execute' etc. and the second can be found by clicking the 'Advvanced' button at the bottom of the 'Security' tab.</p>
  
  <p>I know how to set the file/directory permissions for the 'Advanced' section programmatically in C# (using .GetAccessControl, .AddAccessRule and .SetAccessControl), but I cannot find a way of programmatically setting the file permissions in the normal 'Security' section of the file properties window.</p>
  
  <p>Can anyone tell me how to do this programmatically in C#?</p>