_wtoi and swscanf in filter driver

Hi,

I can’t seem to use _wtoi() or swscanf() in my filter driver. I am able to use swprintf() and _itow() though.

_wtoi() and swscanf() causing the following link errors
Error 86 error LNK2019: unresolved external symbol __imp___wtoi(/or swscanf here)

These are undocumented and never have been guaranteed to work.
RtlUnicodeStringToInteger is the documented way to do a _wtoi.


Don Burn (MVP, Windows DDK)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

wrote in message news:xxxxx@ntfsd…
> Hi,
>
> I can’t seem to use _wtoi() or swscanf() in my filter driver. I am able to
> use swprintf() and _itow() though.
>
> wtoi() and swscanf() causing the following link errors
> Error 86 error LNK2019: unresolved external symbol imp
wtoi(/or
> swscanf here)
>
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 4150 (20090612)

>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

Information from ESET NOD32 Antivirus, version of virus signature database 4150 (20090612)

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

As Don said, DON’T! You should be using the Rtl_ functions, at a minimum,
and if manipulating strings you should study and include “ntstrsafe.h” and
look at safe string operations in the kernel.

The personal opinion of
Gary G. Little

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Friday, June 12, 2009 3:56 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] _wtoi and swscanf in filter driver

Hi,

I can’t seem to use _wtoi() or swscanf() in my filter driver. I am able to
use swprintf() and _itow() though.

_wtoi() and swscanf() causing the following link errors
Error 86 error LNK2019: unresolved external symbol __imp___wtoi(/or
swscanf here)


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer