title: C++ Get/Change permission of a folder and file?
body: <p>I am using Microsoft Visual Studio 10.0 on Windows 10 RS5.<br>
  I intend to make an explorer which shows functions of standard explorer and permissions, like this </p>
  
  <hr>
  
  <pre><code>No  Name            Create              Permission
  1   Application     18/01/21 - 11:00    rw
  2   Privacy         18/01/21 - 10:00    --
  3   Protected       18/01/20 - 09:01    r-  
  </code></pre>
  
  <hr>
  
  <p>I implemented this using <code>_taccess()</code>, but is there any function to get permission of a file or folder on <code>Kernel32.dll</code> or <code>ntdll.dll</code>? 
  Then, how can I change the permission using <code>WinAPI</code>.  </p>
  
  <p><strong>Permission:</strong>  </p>
  
  <blockquote>
    <p>r: Read-able<br>
    w: Write-able</p>
  </blockquote>
  
  <p>I cannot find out valid answer on here, so I posted it.  The main point is get permission not using <code>_taccess()</code>, and change permission using <code>WinAPI</code>.</p>