What is the format specifier for the LONG64 ,int64 and can we print it in Hex using DbgPrint? There is no dicumentaion on MSDn regarding this.
You use %I64x for that I64 specifies a 64-bit value, and %I is used when it
is a ULONG_PTR and will be either 32 or 64 bit depending on whether the
system is 32 or 64.
Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Saturday, March 28, 2015 9:08 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Print Specifier for LONG64
What is the format specifier for the LONG64 ,int64 and can we print it in
Hex using DbgPrint? There is no dicumentaion on MSDn regarding this.
NTFSD is sponsored by OSR
OSR is hiring!! Info at http://www.osr.com/careers
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
%I64d
or in newer versions maybe also %lld
If you’re speaking about sprintf() family of calls - then %I64d was always there, and %lld is supported from Vista up (or from 2003 up? XP does not support it in the OS-provided MSVCRT.DLL).
And, if you use MSVCR80.DLL or such (installed as redist package), then you always have %lld
–
Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntfsd…
> What is the format specifier for the LONG64 ,int64 and can we print it in Hex using DbgPrint? There is no dicumentaion on MSDn regarding this.
>
%I for size_t? or %p?
“Don Burn” wrote in message news:xxxxx@ntfsd…
> You use %I64x for that I64 specifies a 64-bit value, and %I is used when it
> is a ULONG_PTR and will be either 32 or 64 bit depending on whether the
> system is 32 or 64.
>
>
> Don Burn
> Windows Driver Consulting
> Website: http://www.windrvr.com
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> xxxxx@gmail.com
> Sent: Saturday, March 28, 2015 9:08 AM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] Print Specifier for LONG64
>
> What is the format specifier for the LONG64 ,int64 and can we print it in
> Hex using DbgPrint? There is no dicumentaion on MSDn regarding this.
>
> —
> NTFSD is sponsored by OSR
>
> OSR is hiring!! Info at http://www.osr.com/careers
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>