MCPcopy Create free account
hub / github.com/T-Troll/alienfx-tools / KeyPressDialog

Function KeyPressDialog

alienfx-gui/KeyPressDialog.cpp:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36BOOL CALLBACK KeyPressDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) {
37 switch (message)
38 {
39 case WM_INITDIALOG:
40 kDlg = hDlg;
41 dEvent = SetWindowsHookEx(WH_KEYBOARD_LL, DetectKeyProc, NULL, 0);
42 break;
43 case WM_CLOSE:
44 UnhookWindowsHookEx(dEvent);
45 EndDialog(hDlg, IDCLOSE);
46 break;
47 default: return false;
48 }
49 return true;
50}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected