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