rem: return scheme_ucs4_to_utf16 (buffer, 0, nchars, NULL, 0, result_length, 0);
add: LPWSTR s; s = scheme_ucs4_to_utf16 (buffer, 0, nchars, NULL, 0, result_length, 1); s[*result_length] = 0; return s;
context: LPWSTR schemeUCS4ToUTF16 (const mzchar * buffer, int nchars, long * result_length){  return scheme_ucs4_to_utf16 (buffer, 0, nchars, NULL, 0, result_length, 0);}