Add helper before writing test

This commit is contained in:
Clement Rouault
2015-09-21 14:01:29 +02:00
parent cecc6477fc
commit 6d37b9d6fa
5 changed files with 63 additions and 4 deletions
+4
View File
@@ -464,6 +464,10 @@ class WinProcess(PROCESSENTRY32, Process):
return RemotePEB64(self.get_peb_addr(), self)
return RemotePEB(self.get_peb_addr(), self)
def exit(self, code=0):
"""Exit the process"""
return kernel32proxy.TerminateProcess(self.handle, code)
class LoadedModule(LDR_DATA_TABLE_ENTRY):
"""An entry in the PEB Ldr list"""