How to? Bytes or Chars (that is 16 bit chars)

Oct 18, 2008
Hello --

I would just like to confirm -- In both of this API call, the "nLength" argument
is the max number of bytes or chars?


void WINAPI ASCIIToUnicode( char * pszASCII, LPWSTR pszUnicode, int nLength );
Convert an ASCII string to Unicode
nLength = maximum length of pszUnicode

void WINAPI UnicodeToASCII( LPWSTR pszUnicode, char * pszASCII, int nLength );
Convert a Unicode string to ASCII
nLength = maximum length of pszASCII