win ddk中字符串的使用方法

来源:互联网 发布:知天下图片 编辑:程序博客网 时间:2024/06/14 07:19
UNICODE_STRING str = RTL_CONSTANT_STRING(L"Hello,UnicodeStr!");
UNICODE_STRING str1;
CHAR *c1="hello char1";
WCHAR *wc1=L"hello wchar";
RtlInitUnicodeString(&str1,L"hello,unicodestr2");


KdPrint(("%wZ",&str));//%wZ输出整个结构体
KdPrint(("%wZ",&str1));
KdPrint(("%s",c1));//%s 小写的s
KdPrint(("%S",wc1));//%S 大写的S
原创粉丝点击