The “Format” parameter of KdPrint supports the printf-style formatting codes. However, what does the Unicode format code (%C, %S, %lc, %ls, %wc, %ws, %wZ) mean? I can’t find the detail information in MSDN. Can anybody tell me where can I find the detail information?
http://lu0s1.3322.org/sys/2k0111.html
best regards,
Lu Lin
TTC senior engineer
http://ttcone.com
Inside Programming
http://lu0.126.com
----- Original Message -----
From: “ÕŶ«Éý”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, November 24, 2005 10:06 AM
Subject: [ntfsd] What does the Unicode format code mean?
> The “Format” parameter of KdPrint supports the printf-style formatting
> codes. However, what does the Unicode format code (%C, %S, %lc, %ls, %wc,
> %ws, %wZ) mean? I can’t find the detail information in MSDN. Can anybody
> tell me where can I find the detail information?
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: lulinsha@163.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
This means that the corresponding parameter must be a pointer to Unicode
chars, or UNICODE_STRING.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “ÕŶ«Éý”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, November 24, 2005 5:06 AM
Subject: [ntfsd] What does the Unicode format code mean?
> The “Format” parameter of KdPrint supports the printf-style formatting codes.
However, what does the Unicode format code (%C, %S, %lc, %ls, %wc, %ws, %wZ)
mean? I can’t find the detail information in MSDN. Can anybody tell me where
can I find the detail information?
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
> http://lu0s1.3322.org/sys/2k0111.html
That’s great, but where are all these formats documented?
That is, if they in fact are documented.
Besides, this info, useful as it is, is not exact.
It says that “AFAIK, printf() and wprintf() functions in crtdll
don’t support the ‘%Z’ and ‘%wZ’ formats.”, but here we are:
// wZ.cpp
// compile and link under VS2003 as a
// user mode console project
#include <windows.h> // should preceed Ntsecapi.h
#include <ntsecapi.h> // for UNICODE_STRING
#include <stdio.h> // for printf
int main() {
UNICODE_STRING uString;
uString.Length = 18;
uString.MaximumLength = 20;
uString.Buffer = L"some text";
printf(“%wZ”, &uString);
return 0; // for a breakpoint
}
// on-screen result:
//“some text”
// with cursor right after the last “t”
----- Original Message -----
From: “lu0”
To: “Windows File Systems Devs Interest List”
Sent: Wednesday, November 23, 2005 10:07 PM
Subject: Re: [ntfsd] What does the Unicode format code mean?
> http://lu0s1.3322.org/sys/2k0111.html
>
> best regards,
> Lu Lin
> TTC senior engineer
> http://ttcone.com
> Inside Programming
> http://lu0.126.com
> ----- Original Message -----
> From: xxxxx@21cn.com
> To: “Windows File Systems Devs Interest List”
> Sent: Thursday, November 24, 2005 10:06 AM
> Subject: [ntfsd] What does the Unicode format code mean?
>
>
>> The “Format” parameter of KdPrint supports the printf-style formatting
>> codes. However, what does the Unicode format code (%C, %S, %lc, %ls, %wc,
>> %ws, %wZ) mean? I can’t find the detail information in MSDN. Can anybody
>> tell me where can I find the detail information?
>>
>> You are currently subscribed to ntfsd as: lulinsha@163.com</stdio.h></ntsecapi.h></windows.h>