.ctor now supports dwDesiredAccess and swShareMode flags