|
|
|
|
|
by ack_complete
310 days ago
|
|
Afraid not. The documentation for AllowSetForegroundWindow() and the associated mechanism still exists, of course: https://learn.microsoft.com/en-us/windows/win32/api/winuser/... But the last time I tried to test code using this to properly hand off foreground permission from one process to another, I had a hard time testing it because I couldn't get it to fail. When this mechanism was first introduced in Windows 98 and 2000, it was pretty aggressive -- if you were past the input timeout and foreground permission hadn't been forwarded or already shared, the target application would fail to come to the front and its taskbar button would light up instead. I haven't seen this happen in a long time on current Windows, programs steal focus all the time. |
|