⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpuinfodlg.h

📁 该小程序能枚举包括cup信息, bios信息, 内存
💻 H
字号:
// cpuinfoDlg.h : header file
//

#if !defined(AFX_CPUINFODLG_H__C235F2FD_A51F_495B_88E3_758B999D1A08__INCLUDED_)
#define AFX_CPUINFODLG_H__C235F2FD_A51F_495B_88E3_758B999D1A08__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <iostream>
using namespace std;

#include <iomanip>
#include <windows.h>
#include <chstring.h>
#include <chstrarr.h>
#include <assert.h>
#include <comdef.h>
#include <wbemcli.h>
#include <winbase.h>
#include <ocidl.h>
#include <comutil.h>
using namespace _com_util;

#include "Iphlpapi.h"
#include "Wbemidl.h"
#include "Ntsecapi.h"

#pragma comment(lib, "iphlpapi.lib") 
#pragma comment(lib, "wbemuuid.lib") 
#pragma comment(lib, "Framedyn.lib") 
#pragma comment(lib, "comsupp.lib")



 
/////////////////////////////////////////////////////////////////////////////
// CCpuinfoDlg dialog
//////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------
//  CPUInfo.h
//         by kkm1982
//----------------------------------------------------------------
class CCPUInfo  
{
public:
	int GetTypeName(char *type);
	int GetName(char *name);
	int GetFamily();
	bool withMMX();
	bool hasFPU();
	DWORD GetSpeed();
	CCPUInfo();
	virtual ~CCPUInfo();
	
private:
	bool FPU;
	char * Name;
	bool MMX;
	int iFamily;
};

class CCpuinfoDlg : public CDialog
{
// Construction
public:
	void wmigetsysteminformation(BSTR bstrInfoKind);
	SIZE_T sizePage;
	CString strList;
	void MacAdpGet();
	CCpuinfoDlg(CWnd* pParent = NULL);	// standard constructor
	void CpuIDGet();
	void BIOSInfoGet();
	UINT FindAwardBios( BYTE** ppBiosAddr );	
	UINT FindAmiBios( BYTE** ppBiosAddr );
	UINT FindPhoenixBios( BYTE** ppBiosAddr );
		

// Dialog Data
	//{{AFX_DATA(CCpuinfoDlg)
	enum { IDD = IDD_CPUINFO_DIALOG };
	CListBox	m_list;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCpuinfoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCpuinfoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnDestroy();
	afx_msg void OnButton3();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	int GiveText(char* pMsg);
	afx_msg void OnBnClickedButton5();
	afx_msg void OnBnClickedButton6();
	afx_msg void OnBnClickedButton7();
};



//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CPUINFODLG_H__C235F2FD_A51F_495B_88E3_758B999D1A08__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -