Solved

Loading DLL in an NDIS Intermediate Driver

Posted on 2004-08-16
6
220 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

13 Experts available now in Live!

Get 1:1 Help Now