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.

48 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: exnc.h
  8. //
  9. // Specific Non-Canonical Test
  10. //
  11. // Test if a Security Descriptor contains an ACL with non-Canonical ACEs
  12. //
  13. // Created by: Marcelo Calbucci (MCalbu)
  14. // June 23rd, 1999.
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef __EXNC_H__
  18. #define __EXNC_H__
  19. #include <windows.h>
  20. #include <ntdsapi.h>
  21. //
  22. // IsSpecificNonCanonical Results:
  23. //
  24. // ENC_RESULT_NOT_PRESENT: This is not an Specific Non-Canonical SD.
  25. // (It still can be a Canonical SD)
  26. // ENC_RESULT_HIDEMEMBER : We have the Non-Canonical part referent to HideMembership
  27. // ENC_RESULT_HIDEOBJECT : We have the Non-Canonical part referent to HideFromAB
  28. // ENC_RESULT_ALL : We have both Non-Canonical parts, HideMembership and HideFromAB
  29. #define ENC_RESULT_NOT_PRESENT 0x0
  30. #define ENC_RESULT_HIDEMEMBER 0x1
  31. #define ENC_RESULT_HIDEOBJECT 0x2
  32. #define ENC_RESULT_ALL (ENC_RESULT_HIDEMEMBER | ENC_RESULT_HIDEOBJECT)
  33. #define ENC_MINIMUM_ALLOWED 0x1
  34. //
  35. // IsSpecificNonCanonicalSD
  36. DWORD IsSpecificNonCanonicalSD(PSECURITY_DESCRIPTOR pSD);
  37. #define NT_RIGHT_MEMBER {0xbf9679c0, 0x0de6, 0x11d0, {0xa2, 0x85, 0x00, 0xaa, 0x00, 0x30, 0x49, 0xe2}}
  38. PSID GetAccountSid(LPCTSTR szServer, LPCTSTR szUsername);
  39. BOOL ENCCompareSids(PSID pSid, LPVOID lpAce);
  40. #endif