| 555 | } |
| 556 | |
| 557 | LRESULT CALLBACK AllowSetForegroundProc(int nCode, WPARAM wParam, LPARAM lParam) { |
| 558 | if ((nCode == HC_ACTION) && (wParam == PM_REMOVE)) { |
| 559 | MSG* msg = reinterpret_cast<MSG*>(lParam); |
| 560 | if (msg->message == WD_ALLOW_SET_FOREGROUND) { |
| 561 | ::AllowSetForegroundWindow(ASFW_ANY); |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | return CallNextHookEx(NULL, nCode, wParam, lParam); |
| 566 | } |
| 567 | |
| 568 | #ifdef __cplusplus |
| 569 | } |
nothing calls this directly
no outgoing calls
no test coverage detected