Results 1 to 3 of 3
  1. #1
    W1Z's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    Can't get base address of engine.dll (client.dll is ok)

    I can get helth, jump, etc. But when I try to get the address of engine.dll I always get 0x0.
    Help me, please. Here's the source code.

    Code:
        clientDLL_ = 0;
        do {
            clientDLL_ = GetModuleBaseAddress(PID_, L"client.dll");
        } while(clientDLL_ == 0);
        printf("client.dll: 0x%X\n", clientDLL_); // it's okay, works
    
        engineDLL_ = 0;
        do {
            engineDLL_ = GetModuleBaseAddress(PID_, L"engine.dll");
        } while(engineDLL_ = 0);
        printf("engine.dll: 0x%X\n", engineDLL_); // 0x0
    Code:
    DWORD GetModuleBaseAddress(DWORD processId, TCHAR *szModuleName)
    {
       DWORD moduleBase = 0;
       HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, processId);
       if(hSnapshot != INVALID_HANDLE_VALUE) {
          MODULEENTRY32 moduleEntry;
          moduleEntry.dwSize = sizeof(MODULEENTRY32);
          if(Module32First(hSnapshot, &moduleEntry)) {
             do {
                if(wcscmp(moduleEntry.szModule, szModuleName) == 0) {
                   moduleBase = (DWORD)moduleEntry.modBaseAddr;
                   break;
                }
             } while (Module32Next(hSnapshot, &moduleEntry));
          }
          CloseHandle(hSnapshot);
       }
       return moduleBase;
    }
    !! Admin's please delete the thread. Fixed it. In while loop engineDll_ = 0, should be engineDll_ == 0
    Last edited by W1Z; 07-14-2013 at 01:48 PM. Reason: FIXED

  2. #2
    AAtoosone523's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    deleted...AND YOU ARE TROLLED I CANNOT DELETE THREADS SILLY

    anyway,thanks for your help now i can make it
    Last edited by AAtoosone523; 07-21-2013 at 09:57 AM.

  3. #3
    Threadstarter
    New Member
    W1Z's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by AAtoosone523 View Post
    deleted...AND YOU ARE TROLLED I CANNOT DELETE THREADS SILLY

    anyway,thanks for your help now i can make it
    !? Thanks for what?

Similar Threads

  1. How can i get the address of Godmode in CheatEngen?
    By paoaman1234 in forum MapleStory Help
    Replies: 1
    Last Post: 06-19-2013, 11:55 AM
  2. [Help] Where can i get Injector to run .dll program ?
    By boyrent in forum CrossFire Hacks & Cheats
    Replies: 5
    Last Post: 06-26-2010, 11:48 AM
  3. [Help] Were can i get the WH.dll?
    By Ajar in forum CrossFire Hacks & Cheats
    Replies: 5
    Last Post: 02-11-2010, 09:11 AM
  4. [Help] cant find dll?? can i get help?
    By theexploited1 in forum WarRock Discussions
    Replies: 30
    Last Post: 01-12-2010, 04:38 PM
  5. how can i get this code!! ZackthOP7D3Dv2.dll
    By onyok0 in forum Soldier Front General
    Replies: 2
    Last Post: 12-23-2009, 07:37 AM

Tags for this Thread