Solved

Loading DLL in an NDIS Intermediate Driver

Posted on 2004-08-16
6
223 Views
Last Modified: 2013-12-03
This is probably a stupid question but I'll ask anyway.

Is it possible to load a DLL, i.e. LoadLibrary, GetProcAddress etc.. from an NDIS intermediate driver?

I don't need to know the specifics of how etc. I'm not writing the driver. I'm writing a library that will be used by the driver. I'd like to not create a static version of it if possible.
0
Comment
Question by:litewoheat
  • 3
6 Comments
 
LVL 8

Expert Comment

by:adg080898
ID: 11815433
What do you mean "static version of it"?

A DLL is not "static", it is "statically loaded". That means that an EXE will automatically load the DLL before the EXE starts execution.

Perhaps you could point me to some documentation for what you are doing. I have the DDK if it's in there.
0
 
LVL 8

Expert Comment

by:adg080898
ID: 11815439
Are you referring to static runtime library vs. using MSVCRT.DLL?
0
 

Author Comment

by:litewoheat
ID: 11815573
I just don't want to compile a version of the library that can be statically linked in at build time.  I want the user/programmer to load the DLL with FreeLibrary and call the functions with GetProcAddress.  No automatic loading of the DLL.  My DLL not MSVCRT or any other.

0
 
LVL 8

Accepted Solution

by:
adg080898 earned 50 total points
ID: 11816940
>  I want the user/programmer to load the DLL with FreeLibrary and call the functions with GetProcAddress

There won't be any "automatic loading". Just write a normal DLL. You don't have to do anything special.

Are you asking how to use LoadLibrary/GetProcAddress/FreeLibrary? C function pointer syntax can be tricky.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now