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.

32 lines
1020 B

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: StrUtils.h
  6. * Content: Defines the string utils
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 02/12/2000 rmt Created
  12. *@@END_MSINTERNAL
  13. *
  14. ***************************************************************************/
  15. #ifndef __STRUTILS_H
  16. #define __STRUTILS_H
  17. HRESULT STR_jkWideToAnsi(LPSTR lpStr,LPCWSTR lpWStr,int cchStr);
  18. HRESULT STR_AllocAndConvertToANSI(LPSTR * ppszAnsi,LPCWSTR lpszWide);
  19. HRESULT STR_jkAnsiToWide(LPWSTR lpWStr,LPCSTR lpStr,int cchWStr);
  20. HRESULT STR_WideToAnsi( const WCHAR *const pWCHARString,
  21. const DWORD dwWCHARStringLength,
  22. char *const pString,
  23. DWORD *const pdwStringLength );
  24. HRESULT STR_AnsiToWide( const char *const pString,
  25. const DWORD dwStringLength,
  26. WCHAR *const pWCHARString,
  27. DWORD *const pdwWCHARStringLength );
  28. #endif