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.

51 lines
838 B

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1997
  5. //
  6. // File: sconv.hxx
  7. //
  8. // Contents: String manipulation routines
  9. //
  10. // History:
  11. //
  12. //----------------------------------------------------------------------------
  13. int
  14. AnsiToUnicodeString(
  15. LPSTR pAnsi,
  16. LPWSTR pUnicode,
  17. DWORD StringLength
  18. );
  19. int
  20. UnicodeToAnsiString(
  21. LPWSTR pUnicode,
  22. LPSTR pAnsi,
  23. DWORD StringLength
  24. );
  25. LPWSTR
  26. AllocateUnicodeString(
  27. LPSTR pAnsiString
  28. );
  29. void
  30. FreeUnicodeString(
  31. LPWSTR pUnicodeString
  32. );
  33. DWORD
  34. ComputeMaxStrlenW(
  35. LPWSTR pString,
  36. DWORD cchBufMax
  37. );
  38. DWORD
  39. ComputeMaxStrlenA(
  40. LPSTR pString,
  41. DWORD cchBufMax
  42. );