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.

46 lines
1.1 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 _ACE_DESC
  15. {
  16. ACCESS_MASK AccessMask;
  17. BYTE Type;
  18. BYTE Flags;
  19. PSID pSid;
  20. }
  21. ACE_DESC, *PACE_DESC;
  22. DWORD
  23. CreateSecurityDescriptor(
  24. OUT PSECURITY_DESCRIPTOR* ppSecurityDescriptor,
  25. IN DWORD dwDaclAceCount,
  26. IN CONST ACE_DESC* pDaclAces,
  27. IN DWORD dwSaclAceCount,
  28. IN CONST ACE_DESC* pSaclAces
  29. );
  30. void
  31. DeleteSecurityDescriptor(
  32. IN PSECURITY_DESCRIPTOR pSecurityDescriptor
  33. );
  34. DWORD
  35. EnablePrivilege(
  36. IN PCWSTR pszPrivName,
  37. IN BOOL bEnable,
  38. OUT PBOOL pbWasEnabled OPTIONAL
  39. );
  40. #endif // _SECURITY_HXX_