Guest User

[HELP] What's wrong here?

a guest
Feb 13th, 2015
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. #define CLIENT_DLL
  2. #include <stdio.h>
  3. #include <Windows.h>
  4. #include "interface.h"
  5. #include "cdll_int.h"
  6. #include "eiface.h"
  7. #include "tier0/memdbgon.h"
  8.  
  9. using namespace std;
  10.  
  11. IVEngineClient *enginecl;
  12.  
  13. BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
  14. {
  15.     while (!GetModuleHandle("client.dll") || !GetModuleHandle("engine.dll"))
  16.     {
  17.         Sleep(1000);
  18.     }
  19.  
  20.     CreateInterfaceFn pEngineDLL = (CreateInterfaceFn)GetProcAddress(GetModuleHandle("engine.dll"), "CreateInterface");
  21.  
  22.     enginecl = (IVEngineClient *)pEngineDLL(VENGINE_CLIENT_INTERFACE_VERSION, NULL);
  23.  
  24.     enginecl -> ExecuteClientCmd("echo Injected!");
  25.  
  26.     return true;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment