Click here to Skip to main content
Click here to Skip to main content

Virtual Desktop: A Simple Desktop Management Tool

By , 25 Jul 2008
 
#pragma once

#define ARRAY_SIZE 1024

class CDesktopManager
{
public:
	CDesktopManager(void);
	virtual ~CDesktopManager(void);

private:
	static TCHAR *m_szDesktopNames[ARRAY_SIZE];
	static int m_iDesktopCount;
//public:
//	CDesktop(TCHAR *szDesktopName);
public:
	static bool PopulateDesktopList(void);
	static int GetDesktopCount(void);

	friend BOOL CALLBACK EnumDesktopProc(LPTSTR lpszDesktopName,LPARAM lParam);
	static void ReleaseMemory(void);
public:
	static bool SwitchDesktop(TCHAR * szDesktopName);
	static bool CreateDesktop(TCHAR * szDesktopName);
	static void GetDesktopName(int iIndex, TCHAR * szDesktopName);
private:
	static void AddDesktop(TCHAR * lpszDesktopName);
public:
	static bool IsCurrentDesktop(TCHAR * szDesktopName);
	static bool LaunchApplication(TCHAR * szApplicationFilePath, TCHAR * szDesktopName);
};

By viewing downloads associated with this article you agree to the Terms of use 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.

License

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

About the Author

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

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 25 Jul 2008
Article Copyright 2007 by Malli_S
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid