www.pudn.com > MultiMonitor.rar > DisplayInfo.h, change:2011-07-10,size:1098b


#pragma once 
 
enum WinVerDef 
{ 
	WIN_VER_UNKNOWN = -1, 
	WIN_VER_95 = 0, 
	WIN_VER_98, 
	WIN_VER_ME, 
	WIN_VER_NT4, 
	WIN_VER_2K, 
	WIN_VER_XP, 
	WIN_VER_XP64, 
	WIN_VER_2K3, 
	WIN_VER_2K3R2, 
	WIN_VER_VISTA, 
	WIN_VER_2K8, 
	WIN_VER_2K8R2, 
	WIN_VER_WIN7, 
}; 
 
 
 
class CDisplayInfo 
{ 
private: 
	CDisplayInfo(void); 
	~CDisplayInfo(void); 
public: 
	enum {DISPLAY_TYPE_SINGLE=8,DISPLAY_TYPE_CLONE=2,DISPLAY_TYPE_EXTEND=4}; 
	static int GetDisplayMode(); 
	static int GetDisplayModeXP(); 
	static int GetDisplayModeWin7(); 
	static BOOL SetScreenSaver(BOOL bCancle=TRUE,UINT newTime=-1); 
	static BOOL SetPowerSaver(BOOL bCancle=TRUE,UINT newTime=-1); 
	static BOOL SetDisplayMode(int iType,BOOL ExChange=FALSE); 
	static BOOL SetDisplayModeXP(int iType,BOOL ExChange=FALSE); 
	static BOOL SetDisplayModeWin7(int iType,BOOL ExChange=FALSE); 
	static int GetDisplayCardType(); 
	static int AnalyCardType(LPCTSTR cardStr); 
	static BOOL GetOSVersion( WinVerDef* winVer ); 
	static BOOL IsOlderSystem( WinVerDef specVer, INT* iResult ); 
	static BOOL GetPrimaryMonitorInfo(DEVMODE *dvm); 
};