Thread: help me pls

Results 1 to 2 of 2
  1. #1
    jabz123NN's Avatar
    Join Date
    Jun 2024
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    help me pls

    Swed swed = new Swed("MAT");
    IntPtr moduleBase = swed.GetModuleBase("Mat.exe"); I see Problums it is System.IndexOutOfRangeException: 'Index was outside the bounds of the array.' how it fix

  2. #2
    xuanshiqi's Avatar
    Join Date
    May 2024
    Gender
    female
    Posts
    1
    Reputation
    10
    Thanks
    0
    HMODULE GetModule(DWORD processId, const std::wstring& moduleName) {
    HMODULE hModule = NULL;
    HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, processId);
    if (hSnapshot) {
    MODULEENTRY32 me;
    me.dwSize = sizeof(me);
    if (Module32First(hSnapshot, &me)) {
    do {
    if (me.th32ProcessID == processId && me.szModule == moduleName) {
    hModule = me.hModule;
    break;
    }
    } while (Module32Next(hSnapshot, &me));
    }
    CloseHandle(hSnapshot);
    }
    return hModule;
    }

Similar Threads

  1. [Help Request] Can SomeOne Help Me Pls ?
    By yousefghaly in forum Visual Basic Programming
    Replies: 3
    Last Post: 09-15-2012, 04:32 PM
  2. [Help Request] Help meh! pls!
    By blazejgd in forum Combat Arms Help
    Replies: 1
    Last Post: 07-30-2012, 09:02 PM
  3. [Help Request] NEED A LITTLE HELP AGAIN ... PLS...
    By wackx26 in forum CrossFire PH Help
    Replies: 5
    Last Post: 06-10-2012, 10:11 AM
  4. [Help Request] Help me pls
    By Cheetos007 in forum Call of Duty Modern Warfare 3 Help
    Replies: 1
    Last Post: 12-15-2011, 10:48 AM
  5. [Help Request] Help Binding pls
    By ~Inujasha in forum Vindictus Help
    Replies: 4
    Last Post: 11-19-2011, 11:05 AM