Source code of Windows XP (NT5)
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.

47 lines
937 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2002 -
  5. //
  6. // File: utils.hxx
  7. //
  8. // Contents: utilities
  9. //
  10. // History: LZhu Feb 1, 2002 Created
  11. //
  12. // Notes:
  13. //
  14. //--------------------------------------------------------------------------
  15. #ifndef UTILS_HXX
  16. #define UTILS_HXX
  17. //
  18. // General arrary count
  19. //
  20. #ifndef COUNTOF
  21. #define COUNTOF(s) ( sizeof( (s) ) / sizeof( *(s) ) )
  22. #endif // COUNTOF
  23. NTSTATUS
  24. KerbUnpackErrorData(
  25. IN OUT PKERB_ERROR ErrorMessage,
  26. IN OUT PKERB_EXT_ERROR * ExtendedError
  27. );
  28. KERBERR
  29. TypedDataListPushFront(
  30. IN OPTIONAL TYPED_DATA_Element* ErrorData,
  31. IN KERB_TYPED_DATA* Data,
  32. OUT ULONG* TypedDataListSize,
  33. OUT UCHAR** TypedDataList
  34. );
  35. TYPED_DATA_Element*
  36. TypedDataListFind(
  37. IN OPTIONAL TYPED_DATA_Element* InputDataList,
  38. IN LONG Type
  39. );
  40. #endif // UTILS_HXX