title: How to create directory with all rights granted to everyone
body: <p>I need to programmatically create a directory that grants "Full Control" to the group "Everyone".  If I use</p>
  
  <pre><code>CreateDirectory(path, NULL);
  </code></pre>
  
  <p>This will, according to the Win32 SDK <a href="http://msdn.microsoft.com/library/aa363855.aspx" rel="nofollow noreferrer">documentation</a>, create a directory that inherits from its parent directory.  I do not want to inherit the access rights of the parent directory I need to ensure that "Everyone" has full control over the directory.</p>
  
  <p>Obviously, this will require setting up the <code>SECURITY_ATTRIBUTES</code> structure with the appropriate security descriptor.  How do I do that?</p>