问题
I'm loading a dll by using it's name like this:
HANDLE hlib = LoadLibrary("Winfax.dll");
Now I want to know from which path the dll was loaded. Is there a way to get the full path and file name for a dll handle?
回答1:
Check out GetModuleFileName: GetModuleFileName Function using hlib as the HMODULE.
来源:https://stackoverflow.com/questions/5117462/get-path-to-dll-loaded-using-loadlibrarymydll-dll