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.

42 lines
1.0 KiB

  1. //
  2. // Prfutil.h
  3. //
  4. // Utility procedures from the VGACTRS code in the DDK
  5. //
  6. #ifndef _PRFUTIL_
  7. #define _PRF_UTIL_
  8. #define QUERY_GLOBAL 1
  9. #define QUERY_ITEMS 2
  10. #define QUERY_FOREIGN 3
  11. #define QUERY_COSTLY 4
  12. #define DIGIT 1
  13. #define DELIMITER 2
  14. #define INVALID 3
  15. #define EvalThisChar(c,d) ( \
  16. (c == d) ? DELIMITER : \
  17. (c == 0) ? DELIMITER : \
  18. (c < (WCHAR)'0') ? INVALID : \
  19. (c > (WCHAR)'9') ? INVALID : \
  20. DIGIT)
  21. BOOL IsNumberInUnicodeList ( IN DWORD dwNumber, IN LPWSTR lpwszUnicodeList );
  22. DWORD GetQueryType ( IN LPWSTR lpValue );
  23. // only prfutil.c will define GLOBAL_STRING
  24. #ifdef DEFINE_STRING
  25. TCHAR GLOBAL_STRING[] = TEXT("Global");
  26. TCHAR FOREIGN_STRING[] = TEXT("Foreign");
  27. TCHAR COSTLY_STRING[] = TEXT("Costly");
  28. TCHAR NULL_STRING[] = TEXT("\0"); // pointer to null string
  29. #else
  30. extern TCHAR GLOBAL_STRING[];
  31. extern TCHAR FOREIGN_STRING[];
  32. extern TCHAR COSTLY_STRING[];
  33. extern TCHAR NULL_STRING[];
  34. #endif
  35. #endif // _PRFUTIL_
  36.