Relative Content

Tag Archive for c#.netwindowswinapipinvoke

Get handle to desktop / shell window

In one of my programs, I need to test if the user is currently focusing the desktop/shell window. Currently, I’m using GetShellWindow() from user32.dll and compare the result to GetForegroundWindow().

Get handle to desktop / shell window

In one of my programs, I need to test if the user is currently focusing the desktop/shell window. Currently, I’m using GetShellWindow() from user32.dll and compare the result to GetForegroundWindow().