Don
Wed Aug 22 14:00:24 CDT 2007
And since DbgPrint uses sprintf underneath, my statement about redundancy
still stands.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website:
http://www.windrvr.com
Blog:
http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"Skywing [MVP]" <skywing_NO_SPAM_@valhallalegends.com> wrote in message
news:OwHMf3O5HHA.5796@TK2MSFTNGP05.phx.gbl...
> Actually, that's incorrect. %S inverts the "wide-ness" of a string in
> format strings. When used with "printf", "%S" means "unicode string"
> (e.g. wchar_t*). When used with "wprintf", "%S" means "8-bit character
> string" (e.g. char*).
>
> --
> Ken Johnson (Skywing)
> Windows SDK MVP
>
http://www.nynaeve.net
> "Don Burn" <burn@stopspam.windrvr.com> wrote in message
> news:ueMyNxO5HHA.4164@TK2MSFTNGP04.phx.gbl...
>> %wS is redundant since %S is for Unicode null terminated strings, %ws is
>> equivalant to %S.
>>
>>
>> --
>> Don Burn (MVP, Windows DDK)
>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> Website:
http://www.windrvr.com
>> Blog:
http://msmvps.com/blogs/WinDrvr
>> Remove StopSpam to reply
>>
>> "xmllmx" <xmllmx@gmail.com> wrote in message
>> news:1187807876.931666.87860@i38g2000prf.googlegroups.com...
>>> Besides %Z, I also can't find the format type %ws in the printf
>>> definition.
>>> (Though %s is defined)
>>>
>>> For example, does %ws differ from %wS?
>>>
>>
>>
>