Getting STATUS_MAPPED_ALIGNMENT from RhInjectLibrary

Dec 28, 2011 at 3:31 PM

Hi,

Before I begin with my question, let me say that this is great library, I'm impressed!

I'm using RhInjectLibrary function to inject 64bit DLL into a 64bit process. The code works just fine on Windows XP/7 64bit. However, my goal is to make it run on Windows 8 and for some reason there it fails. When I attempt the injection on the process which I originally want to hook RhInjectLibrary fails with STATUS_MAPPED_ALIGNMENT. When I attempt to use it on other apps (like Wordpad) the application crashes. Again, the same code works perfectly well on XP/7.

Does anyone have an idea what can be the problem?

Thanks

Jan 1, 2012 at 7:18 PM

Microsoft says this on this error message maybe it gives a direction and stuff changed in W8

0xC0000220 STATUS_MAPPED_ALIGNMENT{Mapped View Alignment Incorrect}

An attempt was made to map a view of a file, but either the specified base address or the offset into the file were not aligned on the proper allocation granularity.

I don't know exactly how library source works but maybe this gives direction

 

http://www.woodmann.com/forum/archive/index.php/t-12743.html