You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Security2
  4. {
  5. internal partial class Win32
  6. {
  7. [StructLayout(LayoutKind.Sequential)]
  8. struct PINHERITED_FROM
  9. {
  10. public Int32 GenerationGap;
  11. [MarshalAs(UnmanagedType.LPTStr)]
  12. public string AncestorName;
  13. }
  14. [StructLayout(LayoutKind.Sequential)]
  15. struct GENERIC_MAPPING
  16. {
  17. public uint GenericRead;
  18. public uint GenericWrite;
  19. public uint GenericExecute;
  20. public uint GenericAll;
  21. }
  22. [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
  23. struct AUTHZ_RPC_INIT_INFO_CLIENT
  24. {
  25. public AuthzRpcClientVersion version;
  26. public string objectUuid;
  27. public string protocol;
  28. public string server;
  29. public string endPoint;
  30. public string options;
  31. public string serverSpn;
  32. }
  33. [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
  34. public struct LUID
  35. {
  36. public uint LowPart;
  37. public uint HighPart;
  38. public static LUID NullLuid
  39. {
  40. get
  41. {
  42. LUID Empty;
  43. Empty.LowPart = 0;
  44. Empty.HighPart = 0;
  45. return Empty;
  46. }
  47. }
  48. }
  49. #region authz
  50. [StructLayout(LayoutKind.Sequential)]
  51. internal struct AUTHZ_ACCESS_REQUEST
  52. {
  53. public StdAccess DesiredAccess;
  54. public byte[] PrincipalSelfSid;
  55. public IntPtr ObjectTypeList;
  56. public int ObjectTypeListLength;
  57. public IntPtr OptionalArguments;
  58. }
  59. [StructLayout(LayoutKind.Sequential)]
  60. internal struct AUTHZ_ACCESS_REPLY
  61. {
  62. public int ResultListLength;
  63. public IntPtr GrantedAccessMask;
  64. public IntPtr SaclEvaluationResults;
  65. public IntPtr Error;
  66. }
  67. internal enum AuthzACFlags : uint // DWORD
  68. {
  69. None = 0,
  70. NoDeepCopySD
  71. }
  72. #endregion
  73. }
  74. }