I have PIMAGE_RESOURCE_DIR_STRING_U, let's call it pResDirStrU.
I want to print it's NameString field which is a wchar.
I tried
1 2 3 4
printf("Name: %s", pResDirStrU->NameString); // prints only the first character
printf("Name: %S", pResDisStrU->NameString); // prints more than it should
wprintf(L"Name: %s", pResDirStrU->NameString);
// prints more than it should, but replaces gibberish / characters from another structure with "?"
Now, what is the correct way of printing this?
I'm doing it like this