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.

46 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 2001.
  5. //
  6. // File : prfutil.HXX
  7. //
  8. // Contents : Utility procedures stolen from the VGACTRS code in the DDK
  9. //
  10. // History: 22-Mar-94 t-joshh Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #pragma once
  14. enum QueryType
  15. {
  16. QUERY_GLOBAL,
  17. QUERY_ITEMS,
  18. QUERY_FOREIGN,
  19. QUERY_COSTLY
  20. };
  21. #define DIGIT 1
  22. #define DELIMITER 2
  23. #define INVALID 3
  24. #define EvalThisChar(c,d) ( \
  25. (c == d) ? DELIMITER : \
  26. (c == 0) ? DELIMITER : \
  27. (c < (WCHAR)'0') ? INVALID : \
  28. (c > (WCHAR)'9') ? INVALID : \
  29. DIGIT)
  30. #define EIGHT_BYTE_MULTIPLE(x) (((x+7)/8)*8)
  31. QueryType GetQueryType( WCHAR * lpValue );
  32. BOOL IsNumberInUnicodeList ( IN DWORD dwNumber, IN LPWSTR lpwszUnicodeList );
  33. BOOL MonBuildInstanceDefinition( PERF_INSTANCE_DEFINITION *pBuffer,
  34. PVOID *pBufferNext,
  35. DWORD ParentObjectTitleIndex,
  36. DWORD ParentObjectInstance,
  37. DWORD UniqueID,
  38. PUNICODE_STRING Name
  39. );