Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 14336, DesktopSwitch for Windows NT/2000

by Rune Moberg Email: Anonymous

Demonstrates Win32 API functions to switch between NT/2000's virtual desktops.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 4.0  to 5.0 1191 downloads
Copyright: No significant restrictions

Size: 5,752 bytes
Updated on Sat, 04 Nov 2000 07:57:10 GMT
Originally uploaded on Mon, 13 Mar 2000 00:00:00 GMT
SHA1 Hash: D6DF8D53F996E2B749A0E7FB74BD57A96D91B6E4
MD5 Hash: DC078A745D55E88C5B86636C4B65CE0D

    Explore the files in this upload

The attached sample demonstrates how to use the following Win32 API functions:
- CreateDesktop
- SwitchDesktop
- EnumDesktops
- OpenDesktop
- CreateProcess (special twist: specifying which desktop to spawn the process under)

Also included is a class wrapper that simplifies the process of creating and managing multiple desktops.

Please observe that my code goes to great lengths to close every desktop handle obtained. This ensures that a desktop will be closed automatically when the user terminates the last process that has a presence in that desktop. This is also why TDesktop.CreateDesktop returns a handle and why the code using this method has to call CloseDesktop itself.

Have fun!

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03