Tech Support > Microsoft Windows > Drivers > HOW SYS File call entries points of a DLL
HOW SYS File call entries points of a DLL
Posted by elpaco on December 2nd, 2005


Hello,

I have a big issue in my development in term of architecture.
I need to make a driver (SYS file).
but I have some DLLs already developped and I necessarily
have to re-use them to communicate with our device.
I found in some microsoft web pages, that it's not possible (or hard) to
link (staticly or dynamicly) a DLL.
has someone of you already make a SYS file calling entry point of a
"standart" DLL?
if it's not possible how to do ? is it possible to use socket in SYS files
to communicate with a third DLL that will call my other DLLS? or some other
ways ?

How the standart drivers do ? because they call exe and DLLs!?!
many thanks if you can help me.
Best regards

Posted by Don Burn on December 2nd, 2005


If you mean by a standard DLL, one built for user space, forget it this is
will not work. If you mean directly calling up to user space from your
kernel driver, do not try this it is an extremely bad idea.

You can use an "inverted call" model see
http://www.osronline.com/article.cfm?id=94 so your driver can talk to an
application or service, and that entity can call user space DLL's.

Tell this group what you are really trying to do, and we can probably give
you more info.



--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply



"elpaco" <elpaco@discussions.microsoft.com> wrote in message
news:4199264D-9F87-46BC-8D0F-A48AD70AA604@microsoft.com...


Posted by elpaco on December 2nd, 2005


First, thanks for your fast answer !!

to use an application or service between the SYS file and my Dlls is not so
bad idea,
I donwload the sample application
http://www.osronline.com/article.cfm?id=94 but I couldn't use/compile them
simply,
do you have a sample (simple) source code, or if you could guide me to one
of the SDk, that make a communication between a Service and SYS file.

for your information, I have a smartcard reader and its own interface
(API/Dlls/h) that are not PCSC (very old reader), I need to create the PCSC
interface (SYS file) for this reader to use it with our current software that
use PCSC layer.
I found in the DDK a sample PCSC driver, the only work to do is to link with
the reader dll... and I reached the problem of the DLLs with SYS file !


Many thanks in advance,

Posted by Maxim S. Shatskih on December 2nd, 2005


Sorry, you will need to port the source code of these DLLs to the kernel mode.

Win32 and the NT kernel are absolutely different. Just plain another platform.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com



Similar Posts