public int GetSecurity(object FileNode, object FileDesc0, ref byte[] SecurityDescriptor) { try { var r = HandleResult(Storage.GetSecurity((IFSEntryPointer)FileDesc0, out var s)).GetNtStatus(); SecurityDescriptor = s.GetSecurityDescriptorBinaryForm(); return(r); } catch (Win32Exception ex) { throw WindowsExceptionGenerator.GetIOException(ex); } catch (NTException ex) { throw WindowsExceptionGenerator.GetIOException(ex); } }