Solved

Loading DLL in an NDIS Intermediate Driver

Posted on 2004-08-16
6
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

624 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