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.

42 lines
1.2 KiB

  1. //
  2. // Modified by RogerJ, 03/08/00
  3. // Original Creator Unknown
  4. // Modification --- UNICODE and Win64 ready
  5. //
  6. //////////////////////////////////////////////////////////////////////////////
  7. #ifndef _UTILS2_H_
  8. #define _UTILS2_H_
  9. bool fMapRegRoot(TCHAR *pszBuf, DWORD index, HKEY *phKey);
  10. #define IsSpace(c) ((c) == ' ' || (c) == '\t' || (c) == '\r' || (c) == '\n' || (c) == '\v' || (c) == '\f')
  11. #define IsDigit(c) ((c) >= '0' && (c) <= '9')
  12. #define IsAlpha(c) ( ((c) >= 'A' && (c) <= 'Z') || ((c) >= 'a' && (c) <= 'z'))
  13. long AtoL(const TCHAR *nptr);
  14. LPTSTR FindChar(LPTSTR, TCHAR);
  15. DWORD GetStringField2(LPTSTR szStr, UINT uField, LPTSTR szBuf, UINT cBufSize);
  16. bool fConvertDotVersionStrToDwords(LPTSTR pszVer, LPDWORD pdwVer, LPDWORD pdwBuild);
  17. //////////////////////////////////////////////////////
  18. // not-in-use in the current version
  19. //////////////////////////////////////////////////////
  20. #if 0
  21. DWORD GetIntField (LPTSTR szStr, UINT ufield, DWORD dwDefault);
  22. void ConvertVersionStrToDwords(LPTSTR pszVer, LPDWORD pdwVer, LPDWORD pdwBuild);
  23. #endif
  24. //////////////////////////////////////////////////////
  25. // End of not-in-use section
  26. //////////////////////////////////////////////////////
  27. #endif