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.
 
 
 
 
 
 

17 lines
512 B

// 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