Solved

Loading DLL in an NDIS Intermediate Driver

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

734 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