RtlStringCchPrintfW 编译的时候出现找不到连接符:
1>ntstrsafe.lib(woutput.obj) : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function __woutput_l
1>ntstrsafe.lib(output.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>ntstrsafe.lib(_mbtowc.obj) : error LNK2019: unresolved external symbol _RtlAnsiCharToUnicodeChar@4 referenced in function _mbtowc
1>ntstrsafe.lib(_wctomb.obj) : error LNK2019: unresolved external symbol _RtlUnicodeToMultiByteN@20 referenced in function __wctomb_s_l
1>MyDriver_Check/HelloWDM.sys : fatal error LNK1120: 3 unresolved externals
错误原因还在找:
可能没有添加.lib类库的原因