|
#pragma once
#include <vector>
using namespace std;
#define ARRAY_SIZE 1024
typedef vector<TCHAR *> StringVector;
class CDesktopManager
{
public:
CDesktopManager(void);
virtual ~CDesktopManager(void);
private:
static StringVector m_szDesktopNames;
static void AddDesktop(TCHAR *pszDesktopName);
public:
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.