選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. }