I want to know if I can directly read or write values in the current process in a Visual Basic 2005 Windows application.
Like *(DWORD*)(0x123456) = 1; in C++ will write the value 1 at the address 0x123456.
So anyway to do the same in VB using only built in functions and not using ReadProcessMemory and WriteProcessMemory?
If you are really sure you need to do this you should look into the Marshal Class, specifically
Marshal.WriteByte.But I am pretty sure
Marshalmakes heavy use of Win32 API functions so it’s questionable if it’s really “built in”.