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.

35 lines
1004 B

  1. //+-------------------------------------------------------------
  2. // Microsoft OLE
  3. // Copyright (C) Microsoft Corporation, 1994-1995.
  4. //
  5. // File: convert.hxx
  6. //
  7. // Contents: General conversions functions
  8. //
  9. // Classes:
  10. //
  11. // Functions: TStrToWStr
  12. // WStrToTStr
  13. // MakeUnicodeString
  14. // MakeSingleByteString
  15. //
  16. // History: 07-Feb-95 AlexE Created
  17. // 28-Mar-95 AlexE Removed class implementation
  18. // 29-Jan-98 FarzanaR Ported from ctoleui tree
  19. //---------------------------------------------------------------
  20. #ifndef __CONVERT_HXX__
  21. #define __CONVERT_HXX__
  22. //
  23. // String conversions
  24. //
  25. HRESULT TStrToWStr(LPCTSTR pszSource, LPWSTR *ppszDest) ;
  26. HRESULT WStrToTStr(LPCWSTR pszSource, LPTSTR *ppszDest) ;
  27. HRESULT MakeUnicodeString(LPCSTR pszSource, LPWSTR *ppszDest) ;
  28. HRESULT MakeSingleByteString(LPCWSTR pszSource, LPSTR *ppszDest) ;
  29. #endif // __CONVERT_HXX__
  30.