开发者

DLLs for current process

开发者 https://www.devze.com 2023-03-08 19:21 出处:网络
how can one tell (using non-CLR C++) which DLLs is a given running process (by ID) us开发者_开发问答ing? With file system paths to those DLLs and EXE.

how can one tell (using non-CLR C++) which DLLs is a given running process (by ID) us开发者_开发问答ing? With file system paths to those DLLs and EXE.

Thank you in advance.


If you are trying to do this in code, you are probably looking for the EnumProcessModules function (or K32EnumProcessModules depending on operating system. See the link for more details). There is an EnumProcessModulesEx that can give you a little more more information. Simply give it a handle to the process you want to know which modules (DLLs) are loaded. If you don't know the handle, you can find it using EnumProcesses or OpenProcess if you know the PID.

0

精彩评论

暂无评论...
验证码 换一张
取 消