Link to home
Start Free TrialLog in
Avatar of rddamian
rddamian

asked on

How do I get the DLL name?

Hi,
When we call a function inside a DLL we'd like to be able to get the name of the DLL itself, but DosQueryModuleName doesn't seem to support a default module handle of NULL, and requires a full path to the DLL, which we don't have. Anyone have a solution for us??

Damian Wilson.
ASKER CERTIFIED SOLUTION
Avatar of Michael Schmidt
Michael Schmidt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rddamian
rddamian

ASKER

This technique could prove invaluable in the future, thank you! Meanwhile, however, we discovered that Watcom actually provides an undocumented (or poorly documented) global copy of the DLL's module handle and module name so we used that.