MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / get_peb

Method get_peb

pydevd_attach_to_process/winappdbg/process.py:884–894  ·  view source on GitHub ↗

Returns a copy of the PEB. To dereference pointers in it call L{Process.read_structure}. @rtype: L{win32.PEB} @return: PEB structure. @raise WindowsError: An exception is raised on error.

(self)

Source from the content-addressed store, hash-verified

882 # ------------------------------------------------------------------------------
883
884 def get_peb(self):
885 """
886 Returns a copy of the PEB.
887 To dereference pointers in it call L{Process.read_structure}.
888
889 @rtype: L{win32.PEB}
890 @return: PEB structure.
891 @raise WindowsError: An exception is raised on error.
892 """
893 self.get_handle(win32.PROCESS_VM_READ | win32.PROCESS_QUERY_INFORMATION)
894 return self.read_structure(self.get_peb_address(), win32.PEB)
895
896 def get_peb_address(self):
897 """

Callers 4

get_image_baseMethod · 0.95
get_image_nameMethod · 0.95
get_environment_blockMethod · 0.95

Calls 3

get_handleMethod · 0.95
read_structureMethod · 0.95
get_peb_addressMethod · 0.95

Tested by

no test coverage detected