title: Windows file sharing: What ACE AccessMask flags correspond to the different share permissions?
body: <p>Recently I tried to create a share using WMI and give read and write permissions to a user. Now using 0x1 (FILE_READ_DATA/FILE_LIST_DIRECTORY) and 0x2 (FILE_WRITE_DATA/FILE_ADD_FILE) didn't work. Setting all flags gave me Full Control.</p>
  
  <p>Which flags do I have to use to set the Read, Change and Full Control share permissions respectively?</p>