JNA - EnumProcessModules() not returning all DLLs?

后端 未结 1 394
温柔的废话
温柔的废话 2021-01-26 20:11

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

1条回答
  •  没有蜡笔的小新
    2021-01-26 20:56

    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.

    0 讨论(0)
提交回复
热议问题