G
Guest
How can I find the currently visible desktop? By calling EnumWindowStations
and EnumDesktops I get a list of all available desktops. But is there a way
to figure out which one of them is currently visible?
I've tried to find the visible desktop by comparing the desktop handle,
returned by the OpenDesktop function, to the desktop handle received by
calling OpenInputDesktop. The result is that the default desktop is always
the one currently receiving user input.
But by using the default desktop my window always shows up at the desktop of
the first user logged on to the system after reboot. No matter if this
desktop is currently visible or not!
As a second attempt I've called GetUserObjectInformation for each desktop
and checked the visible flag. But the result is there is no visible desktop
at all !?
What am I doing wrong? Or what is the right way to search for the currently
visible desktop?
and EnumDesktops I get a list of all available desktops. But is there a way
to figure out which one of them is currently visible?
I've tried to find the visible desktop by comparing the desktop handle,
returned by the OpenDesktop function, to the desktop handle received by
calling OpenInputDesktop. The result is that the default desktop is always
the one currently receiving user input.
But by using the default desktop my window always shows up at the desktop of
the first user logged on to the system after reboot. No matter if this
desktop is currently visible or not!
As a second attempt I've called GetUserObjectInformation for each desktop
and checked the visible flag. But the result is there is no visible desktop
at all !?
What am I doing wrong? Or what is the right way to search for the currently
visible desktop?