Problem initialing a unicode string

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2010-06-08T19:10:37Z Indexed on 2010/06/08 20:22 UTC
Read the original article Hit count: 192

Filed under:
|
|
|

Hey All. Atm im working with native API calls and i have to get RtlInitUnicodeString to work. The way i use:

const     WCHAR wcMutex[]  = L"String1"; 
UNICODE_STRING unicodeMutexBuffer; 
RtlInitUnicodeString(&unicodeMutexBuffer,wcMutex); 

now my problem the project doesnt compile , i get this error:

Error argument of type "UNICODE_STRING*" is incompatible with type of "PUNICODE_STRING"

but in my old Driver kit , i used same way to initialize the unicode string struct

© Stack Overflow or respective owner

Related posts about c++

Related posts about string