Parent Process ID :type: :class:`int`
(self)
| 95 | |
| 96 | @utils.fixedpropety |
| 97 | def ppid(self): |
| 98 | """Parent Process ID |
| 99 | |
| 100 | :type: :class:`int` |
| 101 | """ |
| 102 | if windows.current_process.bitness == 32 and self.bitness == 64: |
| 103 | xtype = windows.remotectypes.transform_type_to_remote64bits(PROCESS_BASIC_INFORMATION) |
| 104 | # Fuck-it <3 |
| 105 | data = (ctypes.c_char * ctypes.sizeof(xtype))() |
| 106 | windows.syswow64.NtQueryInformationProcess_32_to_64(self.limited_handle, ProcessInformation=data, ProcessInformationLength=ctypes.sizeof(xtype)) |
| 107 | # Map a remote64bits(PROCESS_BASIC_INFORMATION) at the address of 'data' |
| 108 | x = xtype(ctypes.addressof(data), windows.current_process) |
| 109 | else: |
| 110 | information_type = 0 |
| 111 | x = PROCESS_BASIC_INFORMATION() |
| 112 | winproxy.NtQueryInformationProcess(self.limited_handle, information_type, x) |
| 113 | return x.InheritedFromUniqueProcessId |
| 114 | |
| 115 | @property |
| 116 | def threads(self): |