Tech Support > Microsoft Windows > Drivers > UNICODE_STRING format
UNICODE_STRING format
Posted by Kid on June 13th, 2008


Hi

Is there some good UNICODE STRING function that I can covert ("%03d",1)
to "001" , or should I use char sprintf first ?

Thank you .

Posted by Don Burn on June 13th, 2008


You can use RtlIntegerToUnicodeString, but it will not handle the leading
zero'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




"Kid" <Kid@discussions.microsoft.com> wrote in message
news:CFF31F05-2D6C-4AF8-AAB9-921598A78850@microsoft.com...


Posted by Doron Holan [MSFT] on June 13th, 2008


RtlUnicodeStringPrintf in ntstrsafe.h will this for you

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Don Burn" <burn@stopspam.windrvr.com> wrote in message
news:eKSDmiUzIHA.1236@TK2MSFTNGP02.phx.gbl...