81 lines
6.1 KiB
C#
81 lines
6.1 KiB
C#
using System;
|
|
|
|
namespace System.Security.AccessControl
|
|
{
|
|
/// <summary>Defines the access rights to use when creating access and audit rules. </summary>
|
|
// Token: 0x020004C4 RID: 1220
|
|
[Flags]
|
|
public enum FileSystemRights
|
|
{
|
|
/// <summary>Specifies the right to read the contents of a directory.</summary>
|
|
// Token: 0x040011E1 RID: 4577
|
|
ListDirectory = 1,
|
|
/// <summary>Specifies the right to open and copy a file or folder. This does not include the right to read file system attributes, extended file system attributes, or access and audit rules.</summary>
|
|
// Token: 0x040011E2 RID: 4578
|
|
ReadData = 1,
|
|
/// <summary>Specifies the right to create a file. </summary>
|
|
// Token: 0x040011E3 RID: 4579
|
|
CreateFiles = 2,
|
|
/// <summary>Specifies the right to open and write to a file or folder. This does not include the right to open and write file system attributes, extended file system attributes, or access and audit rules.</summary>
|
|
// Token: 0x040011E4 RID: 4580
|
|
WriteData = 2,
|
|
/// <summary>Specifies the right to append data to the end of a file.</summary>
|
|
// Token: 0x040011E5 RID: 4581
|
|
AppendData = 4,
|
|
/// <summary>Specifies the right to create a folder. </summary>
|
|
// Token: 0x040011E6 RID: 4582
|
|
CreateDirectories = 4,
|
|
/// <summary>Specifies the right to open and copy extended file system attributes from a folder or file. For example, this value specifies the right to view author and content information. This does not include the right to read data, file system attributes, or access and audit rules.</summary>
|
|
// Token: 0x040011E7 RID: 4583
|
|
ReadExtendedAttributes = 8,
|
|
/// <summary>Specifies the right to open and write extended file system attributes to a folder or file. This does not include the ability to write data, attributes, or access and audit rules.</summary>
|
|
// Token: 0x040011E8 RID: 4584
|
|
WriteExtendedAttributes = 16,
|
|
/// <summary>Specifies the right to run an application file.</summary>
|
|
// Token: 0x040011E9 RID: 4585
|
|
ExecuteFile = 32,
|
|
/// <summary>Specifies the right to list the contents of a folder and to run applications contained within that folder.</summary>
|
|
// Token: 0x040011EA RID: 4586
|
|
Traverse = 32,
|
|
/// <summary>Specifies the right to delete a folder and any files contained within that folder.</summary>
|
|
// Token: 0x040011EB RID: 4587
|
|
DeleteSubdirectoriesAndFiles = 64,
|
|
/// <summary>Specifies the right to open and copy file system attributes from a folder or file. For example, this value specifies the right to view the file creation or modified date. This does not include the right to read data, extended file system attributes, or access and audit rules.</summary>
|
|
// Token: 0x040011EC RID: 4588
|
|
ReadAttributes = 128,
|
|
/// <summary>Specifies the right to open and write file system attributes to a folder or file. This does not include the ability to write data, extended attributes, or access and audit rules.</summary>
|
|
// Token: 0x040011ED RID: 4589
|
|
WriteAttributes = 256,
|
|
/// <summary>Specifies the right to create folders and files, and to add or remove data from files. This right includes the <see cref="F:System.Security.AccessControl.FileSystemRights.WriteData" /> right, <see cref="F:System.Security.AccessControl.FileSystemRights.AppendData" /> right, <see cref="F:System.Security.AccessControl.FileSystemRights.WriteExtendedAttributes" /> right, and <see cref="F:System.Security.AccessControl.FileSystemRights.WriteAttributes" /> right. </summary>
|
|
// Token: 0x040011EE RID: 4590
|
|
Write = 278,
|
|
/// <summary>Specifies the right to delete a folder or file. </summary>
|
|
// Token: 0x040011EF RID: 4591
|
|
Delete = 65536,
|
|
/// <summary>Specifies the right to open and copy access and audit rules from a folder or file. This does not include the right to read data, file system attributes, and extended file system attributes. </summary>
|
|
// Token: 0x040011F0 RID: 4592
|
|
ReadPermissions = 131072,
|
|
/// <summary>Specifies the right to open and copy folders or files as read-only. This right includes the <see cref="F:System.Security.AccessControl.FileSystemRights.ReadData" /> right, <see cref="F:System.Security.AccessControl.FileSystemRights.ReadExtendedAttributes" /> right, <see cref="F:System.Security.AccessControl.FileSystemRights.ReadAttributes" /> right, and <see cref="F:System.Security.AccessControl.FileSystemRights.ReadPermissions" /> right.</summary>
|
|
// Token: 0x040011F1 RID: 4593
|
|
Read = 131209,
|
|
/// <summary>Specifies the right to open and copy folders or files as read-only, and to run application files. This right includes the <see cref="F:System.Security.AccessControl.FileSystemRights.Read" /> right and the <see cref="F:System.Security.AccessControl.FileSystemRights.ExecuteFile" /> right.</summary>
|
|
// Token: 0x040011F2 RID: 4594
|
|
ReadAndExecute = 131241,
|
|
/// <summary>Specifies the right to read, write, list folder contents, delete folders and files, and run application files. This right includes the <see cref="F:System.Security.AccessControl.FileSystemRights.ReadAndExecute" /> right, the <see cref="F:System.Security.AccessControl.FileSystemRights.Write" /> right, and the <see cref="F:System.Security.AccessControl.FileSystemRights.Delete" /> right.</summary>
|
|
// Token: 0x040011F3 RID: 4595
|
|
Modify = 197055,
|
|
/// <summary>Specifies the right to change the security and audit rules associated with a file or folder.</summary>
|
|
// Token: 0x040011F4 RID: 4596
|
|
ChangePermissions = 262144,
|
|
/// <summary>Specifies the right to change the owner of a folder or file. Note that owners of a resource have full access to that resource.</summary>
|
|
// Token: 0x040011F5 RID: 4597
|
|
TakeOwnership = 524288,
|
|
/// <summary>Specifies whether the application can wait for a file handle to synchronize with the completion of an I/O operation.</summary>
|
|
// Token: 0x040011F6 RID: 4598
|
|
Synchronize = 1048576,
|
|
/// <summary>Specifies the right to exert full control over a folder or file, and to modify access control and audit rules. This value represents the right to do anything with a file and is the combination of all rights in this enumeration.</summary>
|
|
// Token: 0x040011F7 RID: 4599
|
|
FullControl = 2032127
|
|
}
|
|
}
|