I want to list all the dlls loaded by a process, like this:
How could I get the information with Python on Windows?
I want to list all the dlls loaded by a process, like this:
How could I get the information with Python on Windows?
Using listdlls:
import os
os.system('listdlls PID_OR_PROCESS_NAME_HERE')
With pywin32 already installed do like:
import win32api, win32process
for h in win32process.EnumProcessModules(win32process.GetCurrentProcess()):
print(win32api.GetModuleFileName(h)
Use functions like win32api.GetFileVersionInfo(), .EnumResourceNames() ... on the dll paths to get dll attribute data.