Query memory information from the address space of the process. Returns a L{win32.MemoryBasicInformation} object. @see: U{http://msdn.microsoft.com/en-us/library/aa366907(VS.85).aspx} @type lpAddress: int @param lpAddress: Address of memory to query.
(self, lpAddress)
| 2466 | return win32.VirtualProtectEx(hProcess, lpAddress, dwSize, flNewProtect) |
| 2467 | |
| 2468 | def mquery(self, lpAddress): |
| 2469 | """ |
| 2470 | Query memory information from the address space of the process. |
| 2471 | Returns a L{win32.MemoryBasicInformation} object. |
| 2472 | |
| 2473 | @see: U{http://msdn.microsoft.com/en-us/library/aa366907(VS.85).aspx} |
| 2474 | |
| 2475 | @type lpAddress: int |
| 2476 | @param lpAddress: Address of memory to query. |
| 2477 | |
| 2478 | @rtype: L{win32.MemoryBasicInformation} |
| 2479 | @return: Memory region information. |
| 2480 | |
| 2481 | @raise WindowsError: On error an exception is raised. |
| 2482 | """ |
| 2483 | hProcess = self.get_handle(win32.PROCESS_QUERY_INFORMATION) |
| 2484 | return win32.VirtualQueryEx(hProcess, lpAddress) |
| 2485 | |
| 2486 | def free(self, lpAddress): |
| 2487 | """ |
no test coverage detected