Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Loading DLL in an NDIS Intermediate Driver

Posted on 2004-08-16
6
Medium Priority
?
230 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 200 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

927 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