diff options
Diffstat (limited to 'private/nw/perf/prfutil.h')
-rw-r--r-- | private/nw/perf/prfutil.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/private/nw/perf/prfutil.h b/private/nw/perf/prfutil.h new file mode 100644 index 000000000..58eb21abd --- /dev/null +++ b/private/nw/perf/prfutil.h @@ -0,0 +1,42 @@ +// +// Prfutil.h +// +// Utility procedures from the VGACTRS code in the DDK +// +#ifndef _PRFUTIL_ +#define _PRF_UTIL_ + +#define QUERY_GLOBAL 1 +#define QUERY_ITEMS 2 +#define QUERY_FOREIGN 3 +#define QUERY_COSTLY 4 + +#define DIGIT 1 +#define DELIMITER 2 +#define INVALID 3 + +#define EvalThisChar(c,d) ( \ + (c == d) ? DELIMITER : \ + (c == 0) ? DELIMITER : \ + (c < (WCHAR)'0') ? INVALID : \ + (c > (WCHAR)'9') ? INVALID : \ + DIGIT) + +BOOL IsNumberInUnicodeList ( IN DWORD dwNumber, IN LPWSTR lpwszUnicodeList ); +DWORD GetQueryType ( IN LPWSTR lpValue ); + +// only prfutil.c will define GLOBAL_STRING +#ifdef DEFINE_STRING +TCHAR GLOBAL_STRING[] = TEXT("Global"); +TCHAR FOREIGN_STRING[] = TEXT("Foreign"); +TCHAR COSTLY_STRING[] = TEXT("Costly"); +TCHAR NULL_STRING[] = TEXT("\0"); // pointer to null string +#else +extern TCHAR GLOBAL_STRING[]; +extern TCHAR FOREIGN_STRING[]; +extern TCHAR COSTLY_STRING[]; +extern TCHAR NULL_STRING[]; +#endif + + +#endif // _PRFUTIL_ |