질문이염 !!
이퓨리한은지
2023.09.20
#include stdAfx.h
#include windows.h
#include stdio.h
#include stdlib.h
DWORD WINAPI Main(void)
{
DWORD Gom;
while(1)
{
Sleep(100);
if (GetAsyncKeyState(VK_INSERT) & 0x8000)//단축기설정
{
Gom= (DWORD)GetModuleHandleA(gom.exe) + 0x3AFC38;
*(DWORD*)(GOM) = 0;//4바이트 벨류
}
}
return 0;
}
BOOL APIENTRY DLLMAIN( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID IpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
MessageBoxA(NULL,ㅎㅇ,OK,MB_OK);//메박 ㅇㅇ
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)&Main, 0, 0, 0);
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}여기서요 (gom.exe) + 0x3AFC38 이부분에 오프셋을 주고싶은데 어케하죠