If I set something like 0x00000040
(my code is located at this address), then the program crashes with this error:
The application was unable to start correctly (0xc000007b)
But if I jmp
from the code section to 0x00400040 then it works.
Why did I get error with that strange address (0xc000007b
) ? Is it possible to start the execution of program from code which is located outside sections?
I use Windows 8.
ntstatus.h
of the WDK. The error code has existed for a long time and is known under its symbolic name asSTATUS_INVALID_IMAGE_FORMAT
. – 0xC0000022L♦ Aug 26 '13 at 18:44