static string AccessMaskToString(NtType type, uint granted_access) { if (type.HasFullPermission(granted_access)) { return("Full Permission"); } return(NtObject.AccessRightsToString(GetTypeAccessRights(type), type.MapGenericRights(granted_access))); }
static string AccessMaskToString(uint granted_access) { if (_type.HasFullPermission(granted_access)) { return("Full Permission"); } return(((KeyAccessRights)granted_access).ToString()); }
static string AccessMaskToString(uint granted_access, bool directory) { if (_type.HasFullPermission(granted_access)) { return("Full Permission"); } if (directory) { FileDirectoryAccessRights rights = (FileDirectoryAccessRights)granted_access; return(rights.ToString()); } else { FileAccessRights rights = (FileAccessRights)granted_access; return(rights.ToString()); } }