Solved

full pathname of loaded dll

Posted on 1997-10-29
2
282 Views
Last Modified: 2013-12-03
Is it possible to determine the full pathname of a dll from the dll itself when it is loaded?
0
Comment
Question by:pswann
2 Comments
 
LVL 3

Accepted Solution

by:
vinniew earned 50 total points
ID: 1408037
I'm sure it is.

Look at the documentation for GetModuleFileName().

Also, you can look at listdlls.exe from www.ntinternals.com for how to get that from outside the process. (look at the exports).


0
 

Author Comment

by:pswann
ID: 1408038
We were using GetModulefilename() but unfortunately we were passing the wrong HMODULE (dllname.hmodule) rather than a call to GetModuleHandle().

An example of its use and where we can get a valid HMODULE from would have been useful.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

14 Experts available now in Live!

Get 1:1 Help Now