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

Method query_working_setex

windows/winobject/process.py:274–286  ·  view source on GitHub ↗
(self, addresses)

Source from the content-addressed store, hash-verified

272 return None
273
274 def query_working_setex(self, addresses):
275 if self.bitness == 64 or windows.current_process.bitness == 64:
276 info_type = EPSAPI_WORKING_SET_EX_INFORMATION64
277 else:
278 info_type = EPSAPI_WORKING_SET_EX_INFORMATION32
279 info_array = (info_type * len(addresses))()
280 for i, data in enumerate(info_array):
281 info_array[i].VirtualAddress = addresses[i]
282 if windows.current_process.bitness == 32 and self.bitness == 64:
283 windows.syswow64.NtQueryVirtualMemory_32_to_64(self.handle, 0, MemoryWorkingSetListEx, info_array)
284 else:
285 winproxy.QueryWorkingSetEx(self.handle, ctypes.byref(info_array), ctypes.sizeof(info_array))
286 return info_array
287
288
289 def get_mapped_filename(self, addr):

Callers

nothing calls this directly

Calls 1

sizeofMethod · 0.45

Tested by

no test coverage detected