Get dll path loaded using LoadLibrary ("MyDll.dll")

I load the dll using this name:

HANDLE hlib = LoadLibrary ("Winfax.dll");

Now I want to know which path the dll was loaded from. Is there a way to get the full path and file name for the dll descriptor?

+3
source share
1 answer

See GetModuleFileName: GetModuleFileName function using hlib as HMODULE.

+6
source

Source: https://habr.com/ru/post/1794710/


All Articles