"Francois Gouget" fgouget@free.fr wrote:
'H','e','n','c','e',' ','t','h','e',' ','t','e','r','m',' ', 'k','l','u','d','g','e','.', ';','-',')'
Especially taking into account that it's very unlikely that anybody will write such strings using anything except plain ASCII.
UNICODE_STRING fooW; char foo[] = "This is my answer in English. It's not a kluge." "Это мой ответ на русском. Не такой уж и ужасный :-)";
RtlCreateUnicodeStringFromAsciiz(&fooW, foo); CreateFileW(fooW.Buffer, ....);
-- Dmitry.