MCPcopy Create free account
hub / github.com/0xJs/RedTeaming_CheatSheet / HookedMessageBox

Function HookedMessageBox

coding/projects/Hooking/IAT/hookem.cpp:14–21  ·  view source on GitHub ↗

Hooking function

Source from the content-addressed store, hash-verified

12
13// Hooking function
14int 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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected