PokeProcess, PokeProcess1, PokeProcess2, PokeProcess4 command

Requires: GfaWinx.lg32

Purpose

Writes a string, byte, word, or long data type to protected process memory.

Syntax

PokeProcess adr, sBytes [, fVerify]
PokeProcess1 adr, byte [, fVerify]
PokeProcess2 adr, word [, fVerify]
PokeProcess4 adr, long [, fVerify]

adr: integer expression
sBytes: string expression
byte: byte expression
word: word (16-bit int) expression
long: integer 32 expression
fVerify: boolean expression

Description

PokeProcess* is capable of writing data to protected process memory, whcih is not possible with GB32's Poke commands. The commands provide an optional boolean parameter that forces verification of the changed bytes. This allows the program to check for success, because there are occasions where writing to process memory is not allowed. Once checked, the fVerify parameter can be left out or set to False. These commands require knowledge of the process's internal coding.

Example

No example, these commands are only available to change GB32's behavior while running and requires knowledge of the process and/or DLL (GfaWin32.exe and GfaWin23.Ocx).

Remarks

These commands will be used to patch the IDE and/or runtime while running.

See Also

{Created by Sjouke Hamstra; Last updated: 24/08/2021 by James Gaite}