Hi,

I used RtlStringCbVPrintfExW routine, and it was
built ok under Windows XP and Windows Server 2003.

But I got the linking error under Windows 2000:

my.obj : error LNK2019: unresolved external symbol __imp___vsnwprintf
referenced
in function _RtlStringVPrintfWorkerW@16
objchk_w2k_x86\i386\netvmini.sys : error LNK1120: 1 unresolved externals

Does Windows 2000 not support that routine?

PS.
I have set the ntstrsafe.lib in my sources file:

TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib \
$(DDK_LIB_PATH)\ntstrsafe.lib

Re: RtlStringCbVPrintfExW linking error under Win2k by Mark

Mark
Sat Sep 18 09:16:16 CDT 2004

In article <uUEPwjNnEHA.3968@TK2MSFTNGP11.phx.gbl>,
Charles_Lin@jadecom.com.tw says...
> Hi,
>
> I used RtlStringCbVPrintfExW routine, and it was
> built ok under Windows XP and Windows Server 2003.
>
> But I got the linking error under Windows 2000:
>
> my.obj : error LNK2019: unresolved external symbol __imp___vsnwprintf
> referenced
> in function _RtlStringVPrintfWorkerW@16
> objchk_w2k_x86\i386\netvmini.sys : error LNK1120: 1 unresolved externals
>
> Does Windows 2000 not support that routine?
>
> PS.
> I have set the ntstrsafe.lib in my sources file:
>
> TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib \
> $(DDK_LIB_PATH)\ntstrsafe.lib
>
>
>

On W2K (and anytime you are using the library version) you have to do
this:
#define NTSTRSAFE_LIB
#include <ntstrsafe.h>


--

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
markr@hollistech.com