Solved

full pathname of loaded dll

Posted on 1997-10-29
2
297 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
[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
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 Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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