Hello. I have got two desktops and I have tried to switch them like this :

HDESK secdesk;          
SwitchDesktop(secdesk = OpenDesktop("MX", NULL, false, DESKTOP_SWITCHDESKTOP));
But it did nothing, neither threw an exception nor switched the desktop. And I'd like to ask if you don't know why. And if you do not, how could I switch them in some different way.