Active Forums => QB64 Discussion => Topic started by: SpriggsySpriggs on October 13, 2020, 02:37:11 am
Title: Anyone good with messing with system memory?
Post by: SpriggsySpriggs on October 13, 2020, 02:37:11 am
If anyone on here knows a good amount about messing with system memory then please lend me a hand. I'm writing a program that reads a string found in memory and then is supposed to write a replacement string to that memory location. I have no problem finding the first location referencing the string and the WriteProcessMemory function does not fail (in the sense that it actually claims to have written the bytes to memory) but I never see anything change because I'm only finding the first reference rather than the one I need. Here is my code so far which uses the PeekPoke library attached. Note: The program can run out of memory depending on the program you are targeting. I've found that notepad++ works fine (in the sense that it doesn't run out of memory finding the first occurence of the string in its memory) so give that a try if you have it installed.