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.

47 lines
1.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1997 **/
  4. /**********************************************************************/
  5. /*
  6. aucommon.hxx
  7. Common definitions, delcarations, and includes for ANSI/UNICODE classes.
  8. FILE HISTORY:
  9. 5/21/97 michth created
  10. */
  11. # include <dbgutil.h>
  12. # include <stringau.hxx>
  13. # include <mlszau.hxx>
  14. # include <tchar.h>
  15. //
  16. // Private Definations
  17. //
  18. //
  19. // When appending data, this is the extra amount we request to avoid
  20. // reallocations
  21. //
  22. #define STR_SLOP 128
  23. #define CODEPAGE_LATIN1 1252
  24. #define STR_CONVERSION_SUCCEEDED(x) (((x) < 0) ? FALSE : TRUE)
  25. int
  26. ConvertMultiByteToUnicode(LPSTR pszSrcAnsiString,
  27. BUFFER *pbufDstUnicodeString,
  28. DWORD dwStringLen);
  29. int
  30. ConvertUnicodeToMultiByte(LPWSTR pszSrcUnicodeString,
  31. BUFFER *pbufDstAnsiString,
  32. DWORD dwStringLen);