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