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
513 B

  1. #ifndef __STRING_CONV__
  2. #define __STRING_CONV__
  3. int
  4. AnsiToUnicodeString(
  5. LPSTR pAnsi,
  6. LPWSTR pUnicode,
  7. DWORD StringLength
  8. );
  9. int
  10. UnicodeToAnsiString(
  11. LPWSTR pUnicode,
  12. LPSTR pAnsi,
  13. DWORD StringLength
  14. );
  15. LPWSTR
  16. AllocateUnicodeString(
  17. LPSTR pAnsiString
  18. );
  19. void
  20. FreeUnicodeString(
  21. LPWSTR pUnicodeString
  22. );
  23. DWORD
  24. ComputeMaxStrlenW(
  25. LPWSTR pString,
  26. DWORD cchBufMax
  27. );
  28. DWORD
  29. ComputeMaxStrlenA(
  30. LPSTR pString,
  31. DWORD cchBufMax
  32. );
  33. #endif