home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 March / PCpro_2005_03.ISO / files / systools / speedswitchxp / sswitchxp14.exe / Typical / Cpudata.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-01-14  |  2.6 KB  |  126 lines

  1. /*
  2.    SpeedswitchXP V1.4
  3.    - Windows XP CPU Frequency Control for Notebooks -
  4.  
  5.    Copyright(c) 2002-2004 Christian Diefer
  6.  
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License version 2 as 
  9.    published by the Free Software Foundation.
  10.    
  11.    This program is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU General Public License for more details.
  15.    
  16.    You should have received a copy of the GNU General Public License
  17.    along with this program; if not, write to the Free Software
  18.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20.  
  21. #pragma once
  22. #include "afxwin.h"
  23.  
  24.  
  25. // CCPUData dialog
  26.  
  27. class CCPUData : public CDialog
  28. {
  29.     DECLARE_DYNAMIC(CCPUData)
  30.  
  31. public:
  32.     CCPUData(CWnd* pParent = NULL);   // standard constructor
  33.     virtual ~CCPUData();
  34.   void setVars();
  35.  
  36. // Dialog Data
  37.     enum { IDD = IDD_CPUDATA };
  38.  
  39. protected:
  40.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  41.   virtual BOOL OnInitDialog();
  42.  
  43.     DECLARE_MESSAGE_MAP()
  44.  
  45. private:
  46.   void init();
  47.   void getCPUFeatures();
  48.   void getCPUType();
  49.   void identifyIntel();
  50.   void identifyAMD();
  51.   void identifyCyrix();
  52.   void Message( LPCTSTR lpszMessage );
  53.  
  54.   BOOL supportsCPUID;
  55.   WORD cpuType;
  56.   char cpuStr[264];
  57.   DWORD exlevel;
  58.   int maxIDVal;
  59.   char vendorID[16];
  60.   int brandID;
  61.   int family;
  62.   DWORD features;
  63.   DWORD exfeatures;
  64.   DWORD exfeatures2;
  65.   int vendor;
  66.   int familyid;
  67.   int modelid;
  68.   int steppingid;
  69.   int typid;
  70.   char* brandStr;
  71.   CFont mf;
  72.   LOGFONT lf;
  73.   BOOL f_fpu;
  74.   BOOL f_vme;
  75.   BOOL f_de;
  76.   BOOL f_pse;
  77.   BOOL f_tsc;
  78.   BOOL f_msr;
  79.   BOOL f_pae;
  80.   BOOL f_mce;
  81.   BOOL f_c8x;
  82.   BOOL f_apic;
  83.   BOOL f_sep;
  84.   BOOL f_mtrr;
  85.   BOOL f_pge;
  86.   BOOL f_mca;
  87.   BOOL f_cmov;
  88.   BOOL f_pse36;
  89.   BOOL f_psn;
  90.   BOOL f_mmx;
  91.   BOOL f_pat;
  92.   BOOL f_fxsr;
  93.   BOOL f_fcmov;
  94.   BOOL f_fsc;
  95.   BOOL f_mmxext;
  96.   BOOL f_cxmmx;
  97.   BOOL f_3dnow;
  98.   BOOL f_3dnowext;
  99.   BOOL f_sse;
  100.   BOOL f_sse2;
  101.   BOOL f_ss;
  102.   BOOL f_htt;
  103.   BOOL f_tm;
  104.   BOOL f_acpi;
  105.   BOOL f_ia64;
  106.  
  107.   CString m_szSupportsCPUID;
  108.   CString m_szVendor;
  109.   CString m_szFeatures;
  110.   int m_iMaxIDVal;
  111.   CString m_szManufacturer;
  112.   int m_iFamily;
  113.   int m_iModel;
  114.   int m_iStepping;
  115.   int m_iFType;
  116.   CString m_szMaxExLevel;
  117.   CString m_szExCPUName;
  118.   CString m_szExFeatures;
  119.   int m_iBrandID;
  120.   CString m_szBrandStr;
  121.   CString m_szExFeatures2;
  122.   char flagText[65536];
  123.   CString m_szFlags;
  124.   CEdit m_eFeatures;
  125. };
  126.