From: r1ddler on
I use a file in my driver and in a win32 app.
This file contains a swprintf_s
When i use the app, everything works.
When i use it in the driver, the driver gives a linkingerror.
Is this not yet supported in WDK?
Do i have to add an additional lib?
From: Maxim S. Shatskih on
> When i use it in the driver, the driver gives a linkingerror.

#ifdef it to RtlStringCchPrintfW

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Doron Holan [MSFT] on
IIRC vista is the first OS to export swprintf_s from ntoskrnl.exe, but like
maxim said, you are better off using RtlStringCchPrintfW or StringCchPrintfW

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"r1ddler" <r1ddler(a)discussions.microsoft.com> wrote in message
news:07D0E115-1059-4103-B250-3F3E4CF0C9EF(a)microsoft.com...
> I use a file in my driver and in a win32 app.
> This file contains a swprintf_s
> When i use the app, everything works.
> When i use it in the driver, the driver gives a linkingerror.
> Is this not yet supported in WDK?
> Do i have to add an additional lib?