windows-nt/Source/XPSP1/NT/multimedia/directx/dplay/dnet/common/strutils.h

33 lines
1,020 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*==========================================================================
*
* Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
*
* File: StrUtils.h
* Content: Defines the string utils
*@@BEGIN_MSINTERNAL
* History:
* Date By Reason
* ==== == ======
* 02/12/2000 rmt Created
*@@END_MSINTERNAL
*
***************************************************************************/
#ifndef __STRUTILS_H
#define __STRUTILS_H
HRESULT STR_jkWideToAnsi(LPSTR lpStr,LPCWSTR lpWStr,int cchStr);
HRESULT STR_AllocAndConvertToANSI(LPSTR * ppszAnsi,LPCWSTR lpszWide);
HRESULT STR_jkAnsiToWide(LPWSTR lpWStr,LPCSTR lpStr,int cchWStr);
HRESULT STR_WideToAnsi( const WCHAR *const pWCHARString,
const DWORD dwWCHARStringLength,
char *const pString,
DWORD *const pdwStringLength );
HRESULT STR_AnsiToWide( const char *const pString,
const DWORD dwStringLength,
WCHAR *const pWCHARString,
DWORD *const pdwWCHARStringLength );
#endif