Embed - Assembly VC++
-
Hi, I have a small problem, a question - don't know whether possible or not. I have an application (MFC) in VC++, i want to change the execution of that application. I want that whenever my Windows machine runs that appl, on start of the application, I place a Long jump to a position from where my actual code is executed. (I want a 16 byte empty space) at the begining of the file (but some fixed sized code can occur before that 16 byte) Can nebody help Sameer
-
Hi, I have a small problem, a question - don't know whether possible or not. I have an application (MFC) in VC++, i want to change the execution of that application. I want that whenever my Windows machine runs that appl, on start of the application, I place a Long jump to a position from where my actual code is executed. (I want a 16 byte empty space) at the begining of the file (but some fixed sized code can occur before that 16 byte) Can nebody help Sameer
Something like this:
int main(void)
{
goto end_nop_block;__asm{
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
}end_nop_block:
...
}Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
-
Something like this:
int main(void)
{
goto end_nop_block;__asm{
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
}end_nop_block:
...
}Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
Thanx but actually i'll tell you the whole story... I have a pogram that takes offset as an input and write 16 bytes of data (character) to the .exe file (like we do in HexDump or neother thing). So now i want that whenever i compile my .exe the 16 bytes are free at the same offset, so that i can write my own data there. like if i define char array[16]; So i have to write on this 16 byte Manually what i am doing is, i am assigning some value to this 16 byte initially and when the program is compiled, i open up my HEX editor and search for this string and write what i want to write. So, did you understand what i mean, and is this possible Thanx again Sameer