#define name hwid //Вписываешь любое имя и свой HWID
UCHAR szFileSys[255], szVolNameBuff[255];
DWORD dwMFL, dwSysFlags;
DWORD dwSerial;
LPCTSTR szHD = "C:\\";
if( fdwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hinstDLL);
Client::BaseDir = CSX::Utils::GetHackWorkingDirectory().c_str();
if (Client::BaseDir.size() < 1)
{
Client::BaseDir = CSX::Utils::GetModuleBaseDir(hinstDLL);
}
GetVolumeInformation(szHD, (LPTSTR)szVolNameBuff, 255, &dwSerial, &dwMFL, &dwSysFlags, (LPTSTR)szFileSys, 255);
if (dwSerial == name)
{
Sleep(100);
}
else
{
MessageBox(NULL, "Error", "123", MB_OK);
exit(0);
return TRUE;
}
#if ENABLE_DEBUG_FILE == 1
AllocConsole();
AttachConsole(GetCurrentProcessId());
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
Client::LogFile = Client::BaseDir + "\\debug.log";
DeleteFileA( Client::LogFile.c_str() );
CSX::Log::LogFile = Client::LogFile;
printf("Client::BaseDir = %s\nClient::LogFile = %s\n", Client::BaseDir.c_str(), Client::LogFile.c_str());
CSX::Log::Add( "::Init::" );
#endif
CreateThread( 0 , 0 , CheatEntry , hinstDLL , 0 , 0 );
}
else if ( fdwReason == DLL_PROCESS_DETACH )
{
Engine::Shutdown();
}
return TRUE;