Leaked source code of windows server 2003
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.

41 lines
1.5 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. DWORD EnablePrivilege(
  33. IN PCWSTR pszPrivName,
  34. IN BOOL bEnable,
  35. OUT PBOOL pbWasEnabled OPTIONAL);
  36. #endif // _SECURITY_HXX_