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.

53 lines
2.3 KiB

  1. #define OFFSET(x) ((PSTR)(LOWORD((DWORD)(x))))
  2. extern LPWSTR StrChrW(LPCWSTR lpStart, WCHAR wMatch);
  3. extern LPSTR StrChrA(LPCSTR lpStart, CHAR wMatch);
  4. extern LPWSTR StrRChrW(LPCWSTR lpStart, LPCWSTR lpEnd, WCHAR wMatch);
  5. extern LPSTR StrRChrA(LPCSTR lptart, LPCSTR lpEnd, CHAR wMatch);
  6. extern LPWSTR StrChrIW(LPCWSTR lpStart, WCHAR wMatch);
  7. extern LPSTR StrChrIA(LPCSTR lptart, CHAR wMatch);
  8. extern LPWSTR StrRChrIW(LPCWSTR lpStart, LPCWSTR lpEnd, WCHAR wMatch);
  9. extern LPSTR StrRChrIA(LPCSTR lptart, LPCSTR lpEnd, CHAR wMatch);
  10. extern INT StrCpyNW(LPWSTR lpDest, LPWSTR lpSource, INT nBufSize);
  11. extern INT StrCpyNA(LPSTR lpest, LPSTR lpSource, INT nBufSize);
  12. extern INT StrNCpyW(LPWSTR lpDest, LPWSTR lpSource, INT nChar);
  13. extern INT StrNCpyA(LPSTR lpest, LPSTR lpSource, INT nChar);
  14. extern LPWSTR StrStrW(LPWSTR lpFirst, LPWSTR lpSrch);
  15. extern LPSTR StrStrA(LPSTR lpirst, LPSTR lpSrch);
  16. extern LPWSTR StrRStrW(LPWSTR lpSource, LPWSTR lpLast, LPWSTR lpSrch);
  17. extern LPSTR StrRStrA(LPSTR lpource, LPSTR lpLast, LPSTR lpSrch);
  18. extern LPWSTR StrStrIW(LPWSTR lpFirst, LPWSTR lpSrch);
  19. extern LPSTR StrStrIA(LPSTR lpirst, LPSTR lpSrch);
  20. extern LPWSTR StrRStrIW(LPWSTR lpSource, LPWSTR lpLast, LPWSTR lpSrch);
  21. extern LPSTR StrRStrIA(LPSTR lpSource, LPSTR lpLast, LPSTR lpSrch);
  22. extern BOOL IntlStrEqWorkerW(BOOL fCaseSens, LPCWSTR lpWStr1, LPCWSTR lpWStr2, INT nChar);
  23. extern BOOL IntlStrEqWorkerA(BOOL fCaseSens, LPCSTR lptr1, LPCSTR lpWStr2, INT nChar);
  24. #ifndef UNICODE
  25. #define StrChr StrChrA
  26. #define StrRChr StrRChrA
  27. #define StrChrI StrChrIA
  28. #define StrRChrI StrRChrIA
  29. #define StrCpyN StrCpyNA
  30. #define StrNCpy StrNCpyA
  31. #define StrStr StrStrA
  32. #define StrRStr StrRStrA
  33. #define StrStrI StrStrIA
  34. #define StrRStrI StrRStrIA
  35. #define IntlStrEqN(lpStr1, lpStr2, nChar) IntlStrEqWorkerA( TRUE, lpStr1, lpStr2, nChar)
  36. #define IntlStrEqNI(lpStr1, lpStr2, nChar) IntlStrEqWorkerA( FALSE, lpStr1, lpStr2, nChar)
  37. #else
  38. #define StrChr StrChrW
  39. #define StrRChr StrRChrW
  40. #define StrChrI StrChrIW
  41. #define StrRChrI StrRChrIW
  42. #define StrCpyN StrCpyNW
  43. #define StrNCpy StrNCpyW
  44. #define StrStr StrStrW
  45. #define StrRStr StrRStrW
  46. #define StrStrI StrStrIW
  47. #define StrRStrI StrRStrIW
  48. #define IntlStrEqN(lpStr1, lpStr2, nChar) IntlStrEqWorkerW( TRUE, lpStr1, lpStr2, nChar)
  49. #define IntlStrEqNI(lpStr1, lpStr2, nChar) IntlStrEqWorkerW( FALSE, lpStr1, lpStr2, nChar)
  50. #endif