Cromon,
can you upload a already compiled version of the Wow injector? Its much easier than just explaning the whole thing out on how to compile it.
Cromon,
can you upload a already compiled version of the Wow injector? Its much easier than just explaning the whole thing out on how to compile it.
Alas, ImageBaseAddress is not a member of _PEB in Windows 7. While I have no idea if I'm on the same page as what you're trying to do, I got around the error by replacing
withCode:PROCESS_BASIC_INFORMATION pbi; NtQueryInformationProcess(hProcess, ProcessBasicInformation, &pbi, sizeof(pbi), NULL); PEB peb; ReadProcessMemory(hProcess, (LPCVOID)pbi.PebBaseAddress, &peb, sizeof(peb), NULL); DWORD dwBase = (DWORD)peb.ImageBaseAddress;
If I'm reading your code right (my C++, especially Win API code, is a bit rusty), this section of code is simply looking for the base address of ntdll.dll. I don't have WoW on this machine to test, but the reading I've done says that this should accomplish the same thing. If you have any input, I'd surely appreciate it.Code:LPMODULEINFO iNtDll; DWORD dwBase; if (GetModuleInformation(hThread, hNtDll, iNtDll, sizeof(iNtDll))) { dwBase = (DWORD)iNtDll->lpBaseOfDll; }
It queries the base address of the WoW-image, not from ntdll.dll. Ive modified my wintrnl.h and changed the PEB structure. Change ImageBaseAddress to Reserved3[1]. Will edit the sourcecode.
May u upload a compiled version for me?
Please get back to me,
T4PO
Upload a compiled version PLXPLXPLX
cant get it to work with visual studio, dunno what to do
same. Im not sure what project to start on. Ive tried dll project and alot others, and tried compiling, but all i get are 0 succeded 1 fail. . Im Using Microsoft Visual Stuido 2010.
it's german but I think you can understand this, because your screenshots are german1>------ Erstellen gestartet: Projekt: exe, Konfiguration: Debug Win32 ------
1>cl : Befehlszeile warning D9028: Fehler beim minimalen Neukompilieren, normale Erstellung wird durchgeführt.
1> roflrofl.cpp
1>e:\wowme\exe\exe\roflrofl.cpp(222): fatal error C1010: Unerwartetes Dateiende während der Suche nach dem vorkompilierten Header. Haben Sie möglicherweise vergessen, im Quellcode "#include "StdAfx.h"" einzufügen?
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
create 3 empty projects (File -> New -> Project -> General -> Empty Project). Name one Mopaq, one VectoredHandler and one how ever you like. add a C++-file for each project and put the appropriate code into the files. Set the project type for Mopaq and VectoredHandler to DLL (Properties -> Configuration Properties -> General -> Configuration Type).
Everything works and seems stable.
VS10 and Win7 64bit.
Appreciate it!
doesnt work
1>------ Erstellen gestartet: Projekt: Mopaq, Konfiguration: Debug Win32 ------
1>cl : Befehlszeile warning D9028: Fehler beim minimalen Neukompilieren, normale Erstellung wird durchgeführt.
1> mopaq.cpp
1>e:\wowme\mopaq\mopaq\mopaq.cpp : fatal error C1902: Fehler im Programmdatenbank-Manager. Überprüfen Sie die Installation.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
And a tip:
If you inject to many MPQs (lets say about 20) it can crash in SMemFree (actually in RtlpCoalesceFreeBlocks), dunno why yet.
/Blubber511: Youre doin it wrong, youre most likely choosin Win32 Project and creates an PCH for you. But you projects cannot use PCH with that files. After creating the projects you should have NO file in the solution. The file you add with the code should be the one and only file that is in the solution. No automatically generated files (like in your case StdAfx.h and StdAfx.cpp)
I dont know what am I doing wrong?
I create a new project and then there are 4 folders, no files.
And what does PCH mean?
PCH means precompiled header. But ive seen that you edited the error message into your previous posting. To the error theres once this:
Schwerwiegender Fehler C1902 (C++)
And try the following: Build -> Clean Solution and then Build -> Rebuild Solution.