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.

62 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. sdchk.h
  5. Abstract:
  6. This module contains basic declarations and definitions for
  7. the security descriptor checking routines.
  8. Author:
  9. Daniel Chan [DanielCh] 30-Sept-1996
  10. Revision History:
  11. IMPORTANT NOTE:
  12. --*/
  13. #if !defined( _SECURITY_CHK_DEFN_ )
  14. #define _SECURITY_CHK__DEFN_
  15. #include "untfs.hxx"
  16. //
  17. // Function prototype to compute the hash value
  18. //
  19. ULONG
  20. ComputeSecurityDescriptorHash(
  21. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  22. IN ULONG Length
  23. );
  24. //
  25. // Function prototype to check whether a block of memory is all filled with null
  26. //
  27. BOOLEAN
  28. RemainingBlockIsZero(
  29. IN OUT PCHAR Buffer,
  30. IN ULONG Size
  31. );
  32. //
  33. // Function prototype to mark the end of a security descriptors block
  34. //
  35. VOID
  36. MarkEndOfSecurityDescriptorsBlock(
  37. IN OUT PSECURITY_ENTRY Security_entry,
  38. IN ULONG LengthOfBlock
  39. );
  40. #endif // _SECURITY_CHK_DEFN_