OldSchoolHack

Register / Login English

C++ Memory

icon Thread: [Help] C++ Memory

Join Date: Mar 2011

Posts: 29

User-Rating:

1 positive
0 negative
TEXT Code:
  1. DWORD GetModuleBase(LPSTR lpModuleName, DWORD dwProcessId)
  2. {
  3. MODULEENTRY32 lpModuleEntry = { 0 };
  4. HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessId);
  5. if (!hSnapShot)
  6. return NULL;
  7. lpModuleEntry.dwSize = sizeof(lpModuleEntry);
  8. BOOL bModule = Module32First(hSnapShot, &lpModuleEntry);
  9. while (bModule)
  10. {
  11. bModule = Module32Next(hSnapShot, &lpModuleEntry);
  12. }
  13. CloseHandle(hSnapShot);
  14. return NULL;
  15. }

Ausgaben:

Meins:
pID: 7452 Base: (null)
CE:
pID: 7452 Base: 00905A4D

__________________

TEXT Code:
  1. cout << "Veröffentliche Hacks: Unbekannt" << endl;