View Single Post
Old 28.07.2007, 11:55   #13
Aspire
Архивный участник
 
Join Date: Nov 2005
Posts: 403
Default

Quote:
Originally Posted by NN4e View Post
tnx
its solve probleme
not exactly :P

Code:
#include "stdafx.h"
#include "tchar.h"
#include "l2auth.h"

HMODULE g_hEngine;

bool __stdcall GetServerInfo(void);
void __stdcall MemPatch(void);

DllExport BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) 
{
switch( fdwReason )
{
case DLL_PROCESS_ATTACH:
MessageBox(NULL,_T("Loading Extender...\n\nOriginal Source Write by x64(99nets)\n\nModif for engine protocol 709."),
_T("Notice"),MB_OK);

g_hEngine = GetModuleHandle(_T("Engine.dll"));

//DebugBreak();
if(GetServerInfo() == FALSE) return FALSE;

MemPatch();
break;
default:
break;
}

return TRUE;
}
Aspire is offline