Introduction - If you have any usage issues, please Google them yourself
Win32 API Hook examples, case notes are very detailed, very easy to understand. In this case realized MessageBox function Hook, of course, you can Hook the other API, only a small change can be.