Windows2003-3790/base/win32/winnls/data/dlls/tools/gb18030/gbunicnv/conveng.h
2020-09-30 16:53:55 +02:00

18 lines
512 B
C

// API: high level service for Unicode to Ansi
// return result Ansi str length (in byte)
int UnicodeStrToAnsiStr(
PCWCH pwchUnicodeStr,
int ncUnicodeStr, // in WCHAR
PCHAR pchAnsiStrBuf,
int ncAnsiStrBufSize);// in BYTE
// API: High level service for Ansi to Unicode
// return Unicode str length (in WCHAR)
int AnsiStrToUnicodeStr(
const BYTE* pbyAnsiStr,
int ncAnsiStrSize, // In char
PWCH pwchUnicodeBuf,
int ncUnicodeBuf); // In WCHAR