mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Add helper before writing test
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user