I've found a way to use the original code in Windows 98 almost unchanged.
These are the needed changes:
Code: Select all
*Buffer = AllocateMemory(0, 1000)
;change with:
*Buffer = VirtualAllocEx_(ProcessHandle, #NULL, 4096, #MEM_COMMIT, #PAGE_READWRITE)
;and, some lines after:
FreeMemory(0)
;change with:
VirtualFreeEx_(ProcessHandle, *Buffer, 0, #MEM_RELEASE)


