Source code of Windows XP (NT5)
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.

36 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // File: security.hxx
  4. //
  5. // Contents:
  6. //
  7. // Classes:
  8. //
  9. // History: 26-Jun-96 MarkBl Created
  10. //
  11. //----------------------------------------------------------------------------
  12. #ifndef _SECURITY_HXX_
  13. #define _SECURITY_HXX_
  14. typedef struct _MYACE {
  15. ACCESS_MASK AccessMask;
  16. UCHAR InheritFlags;
  17. PSID pSid;
  18. } MYACE, * PMYACE;
  19. PACCESS_ALLOWED_ACE CreateAccessAllowedAce(
  20. PSID pSid,
  21. ACCESS_MASK AccessMask,
  22. UCHAR AceFlags,
  23. UCHAR InheritFlags,
  24. DWORD * pStatus = NULL);
  25. PSECURITY_DESCRIPTOR CreateSecurityDescriptor(
  26. DWORD AceCount,
  27. MYACE rgMyAce[],
  28. PACCESS_ALLOWED_ACE rgAce[],
  29. DWORD * pStatus = NULL);
  30. void DeleteSecurityDescriptor(
  31. PSECURITY_DESCRIPTOR pSecurityDescriptor);
  32. #endif // _SECURITY_HXX_