1
我試過使用memset,但它似乎只完全替換代碼。我如何去做這件事?這裏是我當前的代碼:如何從DLL中寫入浮點值?
#include <iostream>
#include "memory.h"
DWORD paranoid = sigScan("\xFF\x15\xE0\x11\x00\x01\xFF\x15\xDC\x11\x00\x01","xxxxxxxxxxxx");
void initiate() {
if (paranoid) {
std::cout<<"Paranoid: "<<paranoid<<std::endl;
// i need to make the DWORD address returned by sigScan have a float value of -1
} else {
MessageBoxA(GetActiveWindow(),"Error: sigscan failed (paranoid)","Error",0);
}
}
DWORD是32位,指針可能是64位。沒有「DWORD地址」這樣的東西。這是可疑的。 – MSalters