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

  1. // API: high level service for Unicode to Ansi
  2. // return result Ansi str length (in byte)
  3. int UnicodeStrToAnsiStr(
  4. PCWCH pwchUnicodeStr,
  5. int ncUnicodeStr, // in WCHAR
  6. PCHAR pchAnsiStrBuf,
  7. int ncAnsiStrBufSize);// in BYTE
  8. // API: High level service for Ansi to Unicode
  9. // return Unicode str length (in WCHAR)
  10. int AnsiStrToUnicodeStr(
  11. const BYTE* pbyAnsiStr,
  12. int ncAnsiStrSize, // In char
  13. PWCH pwchUnicodeBuf,
  14. int ncUnicodeBuf); // In WCHAR