简体   繁体   English

C++:如何使用 memory 地址与 a.exe 基址而不是 a.dll 基址

[英]C++: How do I use memory address with a .exe base instead of a .dll base

getting into game manipulation, I've always used进入游戏操作,我一直使用

DWORD ClientBase = (DWORD)GetModuleHandle("thing.dll");

and now I have a base that uses an.exe, what do I do, the address is always reading 0 no matter what I do.现在我有一个使用 an.exe 的基础,我该怎么办,无论我做什么,地址总是读取0

The call is failing.通话失败。 Check that you have the correct path to the file you're trying to open.检查您尝试打开的文件的路径是否正确。

From: https://docs.microsoft.com/en-us/previous-versions/ms908443(v=msdn.10)来自: https://docs.microsoft.com/en-us/previous-versions/ms908443(v=msdn.10)

Return Values返回值
A handle to the specified module indicates success.指定模块的句柄表示成功。 NULL indicates failure. NULL 表示故障。 To get extended error information, call GetLastError.要获取扩展错误信息,请调用 GetLastError。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM