I trying to read coordinates from a game. This works perfectly fine, when using ReadProcessMemory on a HANDLE that I receive through OpenProcess, with the memory I find in Cheat
The solution was to use EnumProcessModulesEx() with the flag for 32 Bit.
I was also told, that if Java is 64 bit, each HMODULE is 8 bytes long.
In addition, there are some problems with the PROCESS_ALL_ACCESS flag when using EnumProcessModulesEx() on newer systems.