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

📄 easysys.h

📁 EasySYS一键建立VC+DDK的驱动开发环境的源码
💻 H
字号:
// EasySYS.h : main header file for the EASYSYS application
//

#if !defined(AFX_EASYSYS_H__D2E8EF14_FEB3_48DA_8E6E_52128E00C0FC__INCLUDED_)
#define AFX_EASYSYS_H__D2E8EF14_FEB3_48DA_8E6E_52128E00C0FC__INCLUDED_

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

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CEasySYSApp:
// See EasySYS.cpp for the implementation of this class
//

class CEasySYSApp : public CWinApp
{
public:
	CEasySYSApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEasySYSApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CEasySYSApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


#define CONFIG_PATH _T("Software\\EasySYS")
#define CONFIG_NAME_LOCATION _T("LastLocation")
#define ENVIRONMENT_PATH_SYSTEM _T("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment")
#define ENVIRONMENT_PATH_USER _T("Environment")
#define WINDDK_PATH _T("SOFTWARE\\Microsoft\\WINDDK")
#define DIALOG_CAPTION _T("EasySYS 0.3.1") //txt display in dialog

struct AppOption
{
	int nClass;
	int nID;
	const TCHAR* szInter;
	const TCHAR* szDisp;
	bool bChecked;
};
//total options
#define OPTION_NUM 6
//for ddk version
#define DDK_NUM 3
//class id of ddk version
#define DDK_VERSION 1
//id of each ddk version
#define DDK_W2K 1
#define DDK_WXP 2
#define DDK_W2K3 3
//for target os
#define TARGET_OS_NUM 3
//class id of target os
#define TARGET_OS 2
//id of each os
#define TOS_W2K IDC_TOS_W2K
#define TOS_WXP IDC_TOS_WXP
#define TOS_W2K3 IDC_TOS_W2K3

extern AppOption g_options[OPTION_NUM];

//define two function for combo box options
BOOL GetCurOption(int nClass, int *pnID);
int SetCurOption(int nClass, int nID);
//define two function for check box options
int GetCheckItem(int nClass, int nIndex);
int SetCheckItem(int nClass, int nID);
/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_EASYSYS_H__D2E8EF14_FEB3_48DA_8E6E_52128E00C0FC__INCLUDED_)

⌨️ 快捷键说明

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