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.

82 lines
1.3 KiB

  1. /*
  2. * util.h - Utility routines description.
  3. */
  4. /* Prototypes
  5. *************/
  6. /* util .c */
  7. extern BOOL IsPathDirectory(PCSTR);
  8. extern BOOL KeyExists(HKEY, PCSTR);
  9. BOOL
  10. StrToIntExW(
  11. LPCWSTR pwszString,
  12. DWORD dwFlags, // STIF_ bitfield
  13. int FAR * piRet);
  14. BOOL
  15. StrToIntExA(
  16. LPCSTR pszString,
  17. DWORD dwFlags, // STIF_ bitfield
  18. int FAR * piRet);
  19. #ifdef UNICODE
  20. #define StrToIntEx StrToIntExW
  21. #else
  22. #define StrToIntEx StrToIntExA
  23. #endif
  24. // Avoid conflict with Nashville commctrl
  25. #ifdef STIF_SUPPORT_HEX
  26. #undef STIF_DEFAULT
  27. #undef STIF_SUPPORT_HEX
  28. #endif
  29. // Flags for StrToIntEx
  30. #define STIF_DEFAULT 0x00000000L
  31. #define STIF_SUPPORT_HEX 0x00000001L
  32. int
  33. StrSpnW(
  34. LPCWSTR psz,
  35. LPCWSTR pszSet);
  36. int
  37. StrSpnA(
  38. LPCSTR psz,
  39. LPCSTR pszSet);
  40. #ifdef UNICODE
  41. #define StrSpn StrSpnW
  42. #else
  43. #define StrSpn StrSpnA
  44. #endif
  45. LPWSTR
  46. StrPBrkW(
  47. IN LPCWSTR psz,
  48. IN LPCWSTR pszSet);
  49. LPSTR
  50. StrPBrkA(
  51. LPCSTR psz,
  52. LPCSTR pszSet);
  53. #ifdef UNICODE
  54. #define StrPBrk StrPBrkW
  55. #else
  56. #define StrPBrk StrPBrkA
  57. #endif
  58. /* Win95 Kernel only stubs lstrcpyW. Memphis Kernel supports it.
  59. ** Use SHLWAPI's version.
  60. */
  61. #define lstrcpyW StrCpyW
  62. #ifdef DEBUG
  63. extern BOOL IsStringContained(PCSTR, PCSTR);
  64. #endif