Get path to dll loaded using LoadLibrary(“MyDll.dll”)

[亡魂溺海] 提交于 2020-01-03 18:51:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!