Wine Developer Cheatsheet, v1

Mike McCormack mike at codeweavers.com
Mon Sep 6 21:45:46 CDT 2004


Vincent Béron wrote:

> Is it best to use MultiByteToWideChar() or
> RtlCreateUnicodeStringFromAsciiz()? I find that latter function much
> easier to use (no need to mess with string lengths, etc.).

iirc, RtlCreateUnicodeStringFromAsciiz has a limitation due to use of 
the UNICODE_STRING structure - it can only deal with strings up to 
2^16-1 bytes in length.  Input to edit controls and other strings may be 
longer than that, so be careful where you use it.

Mike





More information about the wine-devel mailing list