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)
| 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 | """ |
no test coverage detected