public int GetSecurityByName(string FileName, out uint FileAttributes /* or ReparsePointIndex */, ref byte[] SecurityDescriptor) { try { var r = HandleResult(Storage.GetSecurityByName(FileName, out var attr, ref SecurityDescriptor)).GetNtStatus(); FileAttributes = (uint)attr; return(r); } catch (Win32Exception ex) { throw WindowsExceptionGenerator.GetIOException(ex); } catch (NTException ex) { throw WindowsExceptionGenerator.GetIOException(ex); } }