P
purity
This is what I'm trying to do (written totally different but you'll get
the point)
HINSTANCE user32 = NULL;
FARPROC mbox = NULL;
user32=LoadLibrary("User32.dll"); //user32 now is i.e 0x77D10000
//I know messagebox is located at offset 0x77D31236 ( which is user32+
0x21236 );
//What I want to do is something similar to this...
mbox = ((FARPROC)user32)+0x21236;
//But I allways get conversion errors (int to int* I believe) or left
operand is int * errors.
I know I can hardcode all the offsets I want, but I want to get them
semi-dynamically (dynamically getting the dll basepointers, and then
just adding a specific value to get to the function I want).
Any help is greatly appreciated.
the point)
HINSTANCE user32 = NULL;
FARPROC mbox = NULL;
user32=LoadLibrary("User32.dll"); //user32 now is i.e 0x77D10000
//I know messagebox is located at offset 0x77D31236 ( which is user32+
0x21236 );
//What I want to do is something similar to this...
mbox = ((FARPROC)user32)+0x21236;
//But I allways get conversion errors (int to int* I believe) or left
operand is int * errors.
I know I can hardcode all the offsets I want, but I want to get them
semi-dynamically (dynamically getting the dll basepointers, and then
just adding a specific value to get to the function I want).
Any help is greatly appreciated.