title: Find the permissions of a file in windows
body: <p>I work in Linux. In Linux with stat function, we can extract the permissions of a file.</p>
  
  <p>Similarly how can we extract the permissions of a file in windows. </p>
  
  <p>_stat function in msdn states that permission bits are set in the stat buffer. But it does not give how to extract them. </p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/14h5k7ff%28VS.71%29.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/14h5k7ff%28VS.71%29.aspx</a></p>