#include <windows.h>
extern void Main(void);
::BOOL WINAPI DllWork ( __in ::HMODULE hModule )
{
Main();
return true;
}
::BOOL WINAPI DllMain ( __in ::HMODULE hModule, __in ::DWORD dwReason, __in __reserved ::LPVOID lpvReserved )
{
::HANDLE hThread = NULL;
if ( dwReason == DLL_PROCESS_ATTACH )
{
if (( hThread = ::CreateThread(NULL, 0, (::LPTHREAD_START_ROUTINE)&DllWork, (::HMODULE)hModule, 0, NULL) ) == NULL )
{
return FALSE;
}
if ( ::CloseHandle(hThread) == FALSE )
{
//do nothing
}
}
return TRUE;
}
#include <Windows.h>
using namespace Tutorial; // Your Project Name
void Main(void)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
Application::Run(gcnew Form1); // Your Form Name
Application::Exit();
}
#include <Windows.h>
#include <Windows.h>
void WriteMemory( unsigned long ulAddress, unsigned char ucAmount, ...)
{
DWORD dwOldProtect;
VirtualProtect((void*)ulAddress, ucAmount, PAGE_EXECUTE_READWRITE, &dwOldProtect);
va_list* va = new va_list;
va_start(*va, ucAmount);
for (unsigned char ByteToWrite = va_arg(*va, unsigned char), ucIndex = 0; ucIndex < ucAmount; ucIndex++, ByteToWrite = va_arg(*va, unsigned char))
{
*(unsigned char*)(ulAddress + ucIndex) = ByteToWrite;
}
va_end(*va);
delete va;
VirtualProtect((void*)ulAddress, ucAmount, dwOldProtect, &dwOldProtect);
}
[enable] 009C2087: db 83 C6 1E [disable] 009C2087: db 83 EE 1E
#include "Functions.h"
DWORD BlinkGodmode = 0x009C2087;
void BlinkGodmodeFunction(bool fEnable)
{
if(fEnable)
{
WriteMemory(BlinkGodmode, 3, 0x83, 0xC6, 0x1E);
}
else
{
WriteMemory(BlinkGodmode, 3, 0x83, 0xEE, 0x1E);
}
}
#include "Hacks.h"
void Form1::checkBox1_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
{
BlinkGodmodeFunction(this->checkBox1->Checked);
}

