title: Is it possible to programatically log access to a windows share (SMB share) using the .Net framework?
body: <p>Just wondering if it is possible to figure out who has read files from a Windows share (using .NET ideally but win32 native will do)?</p>
  
  <p>What I'm try to do is create something like <a href="http://awstats.sourceforge.net/" rel="nofollow noreferrer">awstats</a> for a windows share so I can see who is accessing what and which are the most popular files.</p>
  
  <p>I'm not interested in changes - I just want to log access (with time) along with ip / hostname and what file.</p>