MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / memory_state

Method memory_state

windows/winobject/process.py:218–231  ·  view source on GitHub ↗

Yield the memory information for the whole address space of the process :yield: :class:`~windows.generated_def.winstructs.MEMORY_BASIC_INFORMATION`

(self)

Source from the content-addressed store, hash-verified

216 return res
217
218 def memory_state(self):
219 """Yield the memory information for the whole address space of the process
220
221 :yield: :class:`~windows.generated_def.winstructs.MEMORY_BASIC_INFORMATION`
222 """
223 addr = 0
224 res = []
225 while True:
226 try:
227 x = self.query_memory(addr)
228 yield x
229 except winproxy.WinproxyError:
230 return
231 addr += x.RegionSize
232
233 def query_working_set(self):
234 if self.bitness == 64 or windows.current_process.bitness == 64:

Callers

nothing calls this directly

Calls 1

query_memoryMethod · 0.95

Tested by

no test coverage detected