help on some details about Hooking API

Hallo people

I am new to Hooking,Please don't see as spoon feeding. Please I need help on a correct step for doing a correct hooking process for API I believe there are steps one must follow in order to do a good hook please someone correct me if I have gone wrong

To begin I get the address I want to hook say kernel32.dll with function MessageBoxA.
I then overwrite it to MyMessageBoxA with the same Dll and parameters.
I introduce the jmp with 5 bytes of data, then I introduce the WriteProcessMemory() and ReadProcessMemory()

[Code]
MessageBoxA ->(overwritten) MyMessageBoxA -> introduce JMP/ Call -> WriteProcessMemory() -> ReadProcessMemory()
[/code]

Now I have been working on this but since I don't have someone to give me a good guidance, I get lost along the line. That's why I come on to forums for a step by step guide.

Please I need your help.
Topic archived. No new replies allowed.