use GetProcAddress to get the address of the function and use any method of hooking to get what you need.
Well the title kinda say it. I wanna hook CreateWindowEx() to get the info i need for WindowProc. Can someone help me out or just a hook of WindowProc that is all i want.
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
use GetProcAddress to get the address of the function and use any method of hooking to get what you need.
topblast (01-19-2011)
Didnt you post this already ?
Hmm maybe of been someone else..
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
You mean an inlinehook right? Because inline is much easier with api's then using IAT
Just make a signature scan of what you want to hook, and then patch it to your own location:
Windows functions (api's) all have a preamble in front of them, I don't know what anymore so here I'm making something up :P Look it up in olly
Pseudo:
Code:{ char *sig = { 0x8b, 0xAB, 0x30, 0x3d, 0x00 }; DWORD HookPlace = SignatureScaning($#@, sig, @%@, %#T); memcpy( HookPlace, pointer to buffer containing little endian jump to hook funcion, size of pointer);
Last edited by .::SCHiM::.; 01-20-2011 at 12:04 AM.
I'm SCHiM
Morals derive from the instinct to survive. Moral behavior is survival behavior above the individual level.
Polymorphic engine
Interprocess callback class
SIN
Infinite-precision arithmetic
Hooking dynamic linkage
(sloppy)Kernel mode Disassembler!!!
Semi debugger