Hooking function
| 11 | |
| 12 | // Hooking function |
| 13 | int HookedMessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType) { |
| 14 | |
| 15 | printf("HookedMessageBox() called.\n"); |
| 16 | |
| 17 | pOrigMessageBox(hWnd, "Messagebox is hooked!", "HOOKED!", uType); |
| 18 | |
| 19 | return IDOK; |
| 20 | } |
| 21 | |
| 22 | // Set hooks on MessageBox |
| 23 | BOOL Hookem(void) { |
nothing calls this directly
no outgoing calls
no test coverage detected