Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Virtual Desktop: A Simple Desktop Management Tool

, 25 Jul 2008
This article gives you an overview of Windows Station, Windows Desktop and how to work with them. It also has a sample application (Virtual Desktop) demonstrating multiple desktop management.
#pragma once
#include <vector>

using namespace std;

#define ARRAY_SIZE 1024
typedef vector<TCHAR *> StringVector;

class CDesktopManager
	virtual ~CDesktopManager(void);

	static StringVector m_szDesktopNames;
	static void AddDesktop(TCHAR *pszDesktopName);

	friend BOOL CALLBACK EnumDesktopProc(LPTSTR lpszDesktopName, LPARAM lParam);

	static int GetDesktopCount(void);

	static void ReleaseMemory(void);
	static void GetDesktopName(int iIndex, TCHAR * szDesktopName);

	static bool PopulateDesktopList(void);
	static bool SwitchDesktop(TCHAR *pszDesktopName);
	static bool CreateDesktop(TCHAR *pszDesktopName);
	static bool IsCurrentDesktop(TCHAR *pszDesktopName);
	static bool LaunchApplication(TCHAR *pszApplicationFilePath, TCHAR *pszDesktopName);
	static bool GetCurrentDesktopName(TCHAR szDesktopName[ARRAY_SIZE]);

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Software Developer
India India
Hello All !
This is Mallinath S. Karkanti, from India. I'm working as a Software Developer in one of the Middle Scale Company... !

| Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 25 Jul 2008
Article Copyright 2007 by Malli_S
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid