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.

64 lines
783 B

  1. #define NULL_TERMINATED 0
  2. int
  3. AnsiToUnicodeString(
  4. LPSTR pAnsi,
  5. LPWSTR pUnicode,
  6. DWORD StringLength
  7. );
  8. int
  9. UnicodeToAnsiString(
  10. LPWSTR pUnicode,
  11. LPSTR pAnsi,
  12. DWORD StringLength
  13. );
  14. LPWSTR
  15. AllocateUnicodeString(
  16. LPSTR pAnsiString
  17. );
  18. void
  19. FreeUnicodeString(
  20. LPWSTR pUnicodeString
  21. );
  22. LPSTR
  23. AllocateAnsiString(
  24. LPWSTR pUnicodeString
  25. );
  26. void
  27. FreeAnsiString(
  28. LPSTR pAnsiString
  29. );
  30. LPSTR*
  31. AllocateAnsiStringArray(
  32. LPWSTR *ppUnicodeStrings,
  33. DWORD dwNumElements
  34. );
  35. void
  36. FreeAnsiStringArray(
  37. LPSTR *ppAnsiStrings,
  38. DWORD dwNumElements
  39. );
  40. DWORD
  41. ComputeMaxStrlenW(
  42. LPWSTR pString,
  43. DWORD cchBufMax
  44. );
  45. DWORD
  46. ComputeMaxStrlenA(
  47. LPSTR pString,
  48. DWORD cchBufMax
  49. );