Writes a single character to the memory of the process. @note: Page permissions may be changed temporarily while writing. @see: L{poke_char} @type lpBaseAddress: int @param lpBaseAddress: Memory address to begin writing. @type char: int
(self, lpBaseAddress, char)
| 1602 | return ord(self.read(lpBaseAddress, 1)) |
| 1603 | |
| 1604 | def write_char(self, lpBaseAddress, char): |
| 1605 | """ |
| 1606 | Writes a single character to the memory of the process. |
| 1607 | |
| 1608 | @note: Page permissions may be changed temporarily while writing. |
| 1609 | |
| 1610 | @see: L{poke_char} |
| 1611 | |
| 1612 | @type lpBaseAddress: int |
| 1613 | @param lpBaseAddress: Memory address to begin writing. |
| 1614 | |
| 1615 | @type char: int |
| 1616 | @param char: Character to write. |
| 1617 | |
| 1618 | @raise WindowsError: On error an exception is raised. |
| 1619 | """ |
| 1620 | self.write(lpBaseAddress, chr(char)) |
| 1621 | |
| 1622 | def read_int(self, lpBaseAddress): |
| 1623 | """ |