Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

117 řádky
2.3 KiB

  1. using System;
  2. namespace Security2
  3. {
  4. enum SECURITY_INFORMATION
  5. {
  6. OWNER_SECURITY_INFORMATION = 1,
  7. GROUP_SECURITY_INFORMATION = 2,
  8. DACL_SECURITY_INFORMATION = 4,
  9. SACL_SECURITY_INFORMATION = 8,
  10. }
  11. internal enum AuthzRpcClientVersion : ushort // USHORT
  12. {
  13. V1 = 1
  14. }
  15. [Flags]
  16. internal enum AuthzResourceManagerFlags : uint
  17. {
  18. NO_AUDIT = 0x1,
  19. }
  20. [Flags]
  21. internal enum StdAccess : uint
  22. {
  23. None = 0x0,
  24. SYNCHRONIZE = 0x100000,
  25. STANDARD_RIGHTS_REQUIRED = 0xF0000,
  26. MAXIMUM_ALLOWED = 0x2000000,
  27. }
  28. [Flags]
  29. internal enum AuthzInitFlags : uint
  30. {
  31. Default = 0x0,
  32. SkipTokenGroups = 0x2,
  33. RequireS4ULogon = 0x4,
  34. ComputePrivileges = 0x8,
  35. }
  36. internal enum AuthzACFlags : uint // DWORD
  37. {
  38. None = 0,
  39. NoDeepCopySD
  40. }
  41. [Flags]
  42. internal enum SecurityInformationClass : uint
  43. {
  44. Owner = 0x00001,
  45. Group = 0x00002,
  46. Dacl = 0x00004,
  47. Sacl = 0x00008,
  48. Label = 0x00010,
  49. Attribute = 0x00020,
  50. Scope = 0x00040
  51. }
  52. internal enum ObjectType : uint
  53. {
  54. File = 1,
  55. }
  56. [Flags]
  57. internal enum FileAccess : uint
  58. {
  59. None = 0x0,
  60. ReadData = 0x1,
  61. WriteData = 0x2,
  62. AppendData = 0x4,
  63. ReadExAttrib = 0x8,
  64. WriteExAttrib = 0x10,
  65. Execute = 0x20,
  66. DeleteChild = 0x40,
  67. ReadAttrib = 0x80,
  68. WriteAttrib = 0x100,
  69. Delete = 0x10000, // DELETE,
  70. ReadPermissions = 0x20000, // READ_CONTROL
  71. ChangePermissions = 0x40000, // WRITE_DAC,
  72. TakeOwnership = 0x80000, // WRITE_OWNER,
  73. GenericRead = ReadPermissions
  74. | ReadData
  75. | ReadAttrib
  76. | ReadExAttrib
  77. | StdAccess.SYNCHRONIZE,
  78. GenericAll = (StdAccess.STANDARD_RIGHTS_REQUIRED | 0x1FF),
  79. CategoricalAll = uint.MaxValue
  80. }
  81. [Flags]
  82. internal enum FileShare : uint
  83. {
  84. None = 0x0,
  85. Read = 0x1,
  86. Write = 0x2,
  87. Delete = 0x4
  88. }
  89. internal enum FileMode : uint
  90. {
  91. OpenExisting = 3,
  92. }
  93. [Flags]
  94. internal enum FileFlagAttrib : uint
  95. {
  96. BackupSemantics = 0x02000000,
  97. }
  98. }