forked from hiyohiyo/CrystalDiskInfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stdafx.h
172 lines (135 loc) · 5.3 KB
/
stdafx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#pragma once
#ifndef _SECURE_ATL
#define _SECURE_ATL 1
#endif
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN
#endif
#ifndef WINVER
#define WINVER 0x0501
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#ifndef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0410
#endif
#ifndef _WIN32_IE
#define _WIN32_IE 0x0600
#endif
#define _AFX_NO_MFC_CONTROLS_IN_DIALOGS
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
#define _AFX_ALL_WARNINGS
#include <afxwin.h> // MFC core and standard component
#include <afxext.h> // Extended MFC
#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h> // MFC IE4 Common Control support
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC Windows Common Control support
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <afxdhtml.h> // HTML Dialogs
#include "DHtmlDialogEx.h" // CDHtmlDialogEx by hiyohiyo
#include "DHtmlMainDialog.h" // CDHtmlMainDialog by hiyohiyo
#include <comutil.h>
#include "CommonFx.h"
#include "UtilityFx.h"
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#pragma warning(disable : 4996)
//------------------------------------------------
// Option Flags
//------------------------------------------------
// For Task Tray Icon Feature
#define OPTION_TASK_TRAY
//------------------------------------------------
// Global Sttings
//------------------------------------------------
// Version Information
#define PROJECT_NAME _T("CrystalDiskInfo")
#define PRODUCT_NAME _T("CrystalDiskInfo")
#if KUREI_KEI_SUPPORT
#define PRODUCT_SHORT_NAME _T("CDI 8 KKE")
#ifdef _M_ARM
#define PRODUCT_EDITION _T("Kurei Kei Edition ARM32")
#elif _M_ARM64
#define PRODUCT_EDITION _T("Kurei Kei Edition ARM64")
#elif _M_X64
#define PRODUCT_EDITION _T("Kurei Kei Edition x64")
#else
#define PRODUCT_EDITION _T("Kurei Kei Edition")
#endif
#elif SUISHO_SHIZUKU_SUPPORT
#define PRODUCT_SHORT_NAME _T("CDI 8 SE")
#ifdef _M_ARM32
#define PRODUCT_EDITION _T("Shizuku Edition ARM32")
#elif _M_ARM64
#define PRODUCT_EDITION _T("Shizuku Edition ARM64")
#elif _M_X64
#define PRODUCT_EDITION _T("Shizuku Edition x64")
#else
#define PRODUCT_EDITION _T("Shizuku Edition")
#endif
#else
#define PRODUCT_SHORT_NAME _T("CDI 8")
#ifdef _M_ARM
#define PRODUCT_EDITION _T("ARM32")
#elif _M_ARM64
#define PRODUCT_EDITION _T("ARM64")
#elif _M_X64
#define PRODUCT_EDITION _T("x64")
#else
#define PRODUCT_EDITION _T("")
#endif
#endif
#define PRODUCT_VERSION L"8.8.0 Alpha1"
#define PRODUCT_RELEASE L"2020/07/24"
#define PRODUCT_COPY_YEAR L"2008-2020"
#define PRODUCT_COPYRIGHT L"© 2008-2020 hiyohiyo"
#define PRODUCT_LICENSE L"The MIT License"
#define DEFAULT_FONT_FACE_1 L"Segoe UI"
#define DEFAULT_FONT_FACE_2 L"Tahoma"
#define THEME_DIR L"CdiResource\\themes\\"
#define LANGUAGE_DIR L"CdiResource\\language\\"
#define MENU_THEME_INDEX 3
#define MENU_LANG_INDEX 6
#define DEFAULT_THEME L"Default"
#define DEFAULT_LANGUAGE L"English"
#define TIMER_UPDATE_DIALOG 500
#define URL_CRYSTAL_DEW_WORLD_JA L"https://crystalmark.info/ja/"
#define URL_CRYSTAL_DEW_WORLD_EN L"https://crystalmark.info/en/"
#define URL_PROJECT_SHIZUKU_JA L"https://suishoshizuku.com/ja/"
#define URL_PROJECT_SHIZUKU_EN L"https://suishoshizuku.com/en/"
#define URL_PRONAMA L"http://pronama.jp/crystaldiskinfo"
#ifdef SUISHO_SHIZUKU_SUPPORT
#ifdef KUREI_KEI_SUPPORT
#define URL_PROJECT_SITE_1 L"http://pronama.jp/crystaldiskinfo"
#define URL_PROJECT_SITE_2 L"http://pronama.jp/ixy"
#define URL_PROJECT_SITE_3 L"http://pronama.jp/uesakasumire"
#define URL_PROJECT_SITE_4 L"http://pronama.jp/crystaldiskinfo"
#define URL_PROJECT_SITE_5 L""
#else
#define URL_PROJECT_SITE_1 L"http://kirinokasumu.com/"
#define URL_PROJECT_SITE_2 L"http://linux-ha.sourceforge.jp/wp/"
#define URL_PROJECT_SITE_3 L"http://ch.nicovideo.jp/oss"
#define URL_PROJECT_SITE_4 L"http://www.bellche.com/"
#define URL_PROJECT_SITE_5 L"https://suishoshizuku.com/"
#endif
#endif
#define URL_VERSION_JA L"https://crystalmark.info/ja/software/crystaldiskinfo/crystaldiskinfo-history/"
#define URL_VERSION_EN L"https://crystalmark.info/en/software/crystaldiskinfo/crystaldiskinfo-history/"
#define URL_LICENSE_JA L"https://crystalmark.info/ja/software/crystaldiskinfo/crystaldiskinfo-license/"
#define URL_LICENSE_EN L"https://crystalmark.info/en/software/crystaldiskinfo/crystaldiskinfo-license/"
#define URL_HTML_HELP_JA L"https://crystalmark.info/ja/software/crystaldiskinfo/"
#define URL_HTML_HELP_EN L"https://crystalmark.info/en/software/crystaldiskinfo/"
// Command
static const int TRAY_TEMPERATURE_ICON_BASE = WM_APP + 0x1200;
static const int SELECT_DISK_BASE = WM_APP + 0x1300;
static const int AUTO_REFRESH_TARGET_BASE = WM_APP + 0x1400;
static const int SHOW_GRAPH_BASE = WM_APP + 0x1500;
static const int ALARM_SETTING_HEALTH_STATUS_BASE = WM_APP + 0x1900;
static const int ALARM_SETTING_TEMPERATURE_BASE = WM_APP + 0x2000; // Main Only
static const int GRAPH_DISK_INDEX = WM_APP + 0x2000; // Graph Only
static const int RE_EXEC = 5963;