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.1 KiB

  1. #pragma once
  2. extern GUID Guid0;
  3. extern GUID Guid1;
  4. extern GUID Guid2;
  5. extern GUID Guid3;
  6. extern GUID Guid4;
  7. extern GUID Guid5;
  8. extern GUID Guid6;
  9. extern GUID Guid7;
  10. extern GUID Guid8;
  11. extern ULONG WorldSid[];
  12. extern ULONG KedarSid[];
  13. extern ULONG RahulSid[];
  14. extern ULONG RobertreSid[];
  15. extern ULONG SpecialSid[];
  16. #define BUFFERMAX 1024
  17. #define FirstAce(Acl) ((PVOID)((PUCHAR)(Acl) + sizeof(ACL)))
  18. #define NextAce(Ace) ((PVOID)((PUCHAR)(Ace) + ((PACE_HEADER)(Ace))->AceSize))
  19. CHAR Buffer[BUFFERMAX];
  20. CHAR TypeListBuffer[BUFFERMAX];
  21. BOOL
  22. MyAccessCheck(
  23. IN AUTHZ_CLIENT_CONTEXT_HANDLE pAuthzClientContext,
  24. IN PACE_HEADER pAce,
  25. IN PVOID pArgs OPTIONAL,
  26. IN OUT PBOOL pbAceApplicable
  27. );
  28. BOOL
  29. MyComputeDynamicGroups(
  30. IN AUTHZ_CLIENT_CONTEXT_HANDLE pAuthzClientContext,
  31. IN PVOID Args,
  32. OUT PSID_AND_ATTRIBUTES *pSidAttrArray,
  33. OUT PDWORD pSidCount,
  34. OUT PSID_AND_ATTRIBUTES *pRestrictedSidAttrArray,
  35. OUT PDWORD pRestrictedSidCount
  36. );
  37. VOID
  38. MyFreeDynamicGroups (
  39. IN PSID_AND_ATTRIBUTES pSidAttrArray
  40. );