Processing Ajax...

Close Dialog


Close Dialog

Close Dialog

Applications that use other desktops broken by 3.1.8

User Image
3 discussion posts

since I have installed 3.1.8, I am unable to use two applications that make use of other desktops. I mean "other desktops" in terms of Windows API calls CreateDesktop/SwitchDesktop and so on. I suspect DisplayFusion to be yet another program using the old flawed IsWorkstationLocked code that I lately blogged about at:

To make long story short, and not to force anyone to read that long article, please use this code instead:


bool IsWorkstationLocked () {
    if (HDESK hDesk = OpenInputDesktop (0, FALSE, DESKTOP_SWITCHDESKTOP)) {
        CloseDesktop (hDesk);
        return false;
    } else
        return true;

This one works just the same, and does not breaks other applications by periodically switching back to main desktop.

Anyway, is that periodical checking even necessary?
It seems that after unlocking the desktop, applications on other monitors sometimes maximize as if the TaskBars weren't there! It seems to me as if the DisplayFusion were not setting the work area correctly. Isn't it using SPI_SETWORKAREA instead of SHAppBarMessage? :wink:

I would love to see this fixed soon.

Mar 26, 2010  • #1
Jon Tackabury (BFS)'s profile on
Thank you for the tip, I never would have caught that without your help. You're in luck, I was posting the next beta this morning and snuck this change in. :) I've tested it out on my test machines and it appears to work perfectly, but please let me know if it is still interfering with your other software. You can download the new beta from here:

As for your other comment about SPI_SETWORKAREA, I am using SHAppBarMessage as that is the recommended way (as far as I know) of reserving desktop space for docked applications. Any feedback is always welcome though. :)
Mar 26, 2010  • #2
User Image
3 discussion posts
Wow, that was quick :-)
Downloaded, installed, and it's working alright. Thanks.

The other problem hasn't manifested itself for some time, so it probably wasn't caused by DisplayFusion.
Mar 26, 2010  • #3
Jon Tackabury (BFS)'s profile on
Thanks for following-up, please let me know if you run into any other issues. :)
Mar 26, 2010  • #4
Was this helpful?  Login to Vote(-)  Login to Vote(-)