到Visual Studio 2013,您只需要msvcr [version] .dll和msvcp [version] .dll.现在,他们在2015年更改了DLL.为了避免使用redist安装程序,我需要包含哪些内容?
编辑:
现在似乎不可能:http: //blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx
"不支持应用程序本地部署通用CRT."
更新:
上面链接的内容已于2015年9月11日更新.现在可以进行应用程序本地部署.
我正在尝试制作一个程序来读取Minesweeper的计时器值.(操作系统是Windows 7 64位)
使用作弊引擎我找到了变量的基地址,但每次运行扫雷时它都会改变.
我需要做什么才能自动找到基地址?
它与可执行基地址有关吗?
这是我的代码:
#include <windows.h>
#include <iostream>
using namespace std;
int main()
{
DWORD baseAddress = 0xFF1DAA38;//always changing
DWORD offset1 = 0x18;
DWORD offset2 = 0x20;
DWORD pAddress1;
DWORD pAddress2;
float value = 0;
DWORD pid;
HWND hwnd;
hwnd = FindWindow(NULL,"Minesweeper");
if(!hwnd)//didn't find the window
{
cout <<"Window not found!\n";
cin.get();
}
else
{
GetWindowThreadProcessId(hwnd,&pid);
HANDLE phandle = OpenProcess(PROCESS_VM_READ,0,pid);//get permission to read
if(!phandle)//failed to get permission
{
cout <<"Could not get handle!\n";
cin.get();
}
else
{ …Run Code Online (Sandbox Code Playgroud)