"Tony Lambregts" tony_lambregts@telusplanet.net wrote:
MultiByteToWideChar uses Rtl* functions internally and using ntdll APIs directly should give a slightly better performance.
RtlCreateUnicodeStringFromAsciiz also is supposed to hide the internals of the conversion and help to avoid bugs and typos.
So the trade off is speed vs potential errors. hmm...
Actually using RtlCreateUnicodeStringFromAsciiz should be faster than calling MultiByteToWideChar(), HeapAlloc(), MultiByteToWideChar().