Using sscanf() in kernel-mode driver

Hi,

Can sscanf() function defined in “ntdll.lib” be used in kernel-mode
drivers.

When i link with “ntdll.lib”, i do not get any link errors (so looks like
it finds sscanf)but when I load the driver(using “net start ”,
I get an error as follows :

"System Error 127 occured.
The specified procedure could not be found. "

Has anyone seen this before? And is they a way to solve this?

Thanks
-atul


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Depending on the OS, ntlib.dll may not be loaded when your driver is
started. Hence, you get the error you noted.

OTOH, if the function of interest is in ntoskrnl.dll, it will probably be
available.

Going futher, there may be IRQL restrictions on the use of these functions
even if they were available. Look at the restrictions on the use of RtlXXX
functions and certainly expect the same on the functions that you are
interested in.

Good luck,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client
http: - http:

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Monday, September 24, 2001 10:00 PM
Subject: [ntdev] Using sscanf() in kernel-mode driver

> Hi,
>
> Can sscanf() function defined in “ntdll.lib” be used in kernel-mode
> drivers.
>
> When i link with “ntdll.lib”, i do not get any link errors (so looks like
> it finds sscanf)but when I load the driver(using “net start ”,
> I get an error as follows :
>
> "System Error 127 occured.
> The specified procedure could not be found. "
>
> Has anyone seen this before? And is they a way to solve this?
>
> Thanks
> -atul
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>

The standard library has only limited support. (s)printf is supported and
some of the memxxx instructions using an RtlXxxx format. Scanf and token you
write yourself.

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@broadstor.com

-----Original Message-----
From: xxxxx@vertical.com [mailto:xxxxx@vertical.com]
Sent: Sunday, September 23, 2001 7:00 PM
To: NT Developers Interest List
Subject: [ntdev] Using sscanf() in kernel-mode driver

Hi,

Can sscanf() function defined in “ntdll.lib” be used in kernel-mode
drivers.

When i link with “ntdll.lib”, i do not get any link errors (so looks like
it finds sscanf)but when I load the driver(using “net start ”,
I get an error as follows :

"System Error 127 occured.
The specified procedure could not be found. "

Has anyone seen this before? And is they a way to solve this?

Thanks
-atul


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com