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

Function HookedMessageBox

coding/projects/Hooking/Detours/hookem.cpp:13–20  ·  view source on GitHub ↗

Hooking function

Source from the content-addressed store, hash-verified

11
12// Hooking function
13int 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
23BOOL Hookem(void) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected