Solved

full pathname of loaded dll

Posted on 1997-10-29
2
284 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 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

18 Experts available now in Live!

Get 1:1 Help Now