我正在使用https://github.com/MarioVilas/winappdbg开发一个调试自动化系统。
我想从事件对象中检索进程名称。这是我的代码:
def EventHandler(event):
print 'Inside event handler'
# I want to print the process name here, In this case which should be somefile.exe
debug = Debug( EventHandler, bKillOnExit = True )
proc = debug.execv(['c:\somefile.exe','arg'])
debug.loop()