Hook Api function

hello guys i have one question. how can i hook to api funtion ? for example i want hook to MessageBoxA and every process call this function i can show alert .
tnx a lot i really need this.
This is kind of a large topic, so I'll just leave you with this: http://msdn.microsoft.com/en-us/library/ms632589(VS.85).aspx
This kind of hook requires something different: http://research.microsoft.com/en-us/projects/detours/ . I am unaware of any other way of doing it.
exactly i want "monitoring api calls with other process"! please help me . i search in internet for one day but i ... :(
Topic archived. No new replies allowed.