"Nikolay Sivov" bunglehead@gmail.com wrote:
Why not just use LoadStringW directly?
Because I don't know how to get string length with LoadStringW. It returns with zero when called with NULL buffer. I could pass a pointer to single char and (buflen = = 0) maybe. Btw, is it normal that LoadString[A/W] differs much handling this NULL-buffer cases?
A test case would tell it definitely.
Introducing the IDS_ROLE_SYSTEM_xxx identifiers is completely redundant, use the ROLE_SYSTEM_xxx values directly instead.
You mean to use ROLE_SYSTEM_* directly in all .rc files?
Yes.