Добавлена папка source в CristalDiskMark

This commit is contained in:
2026-05-29 13:04:54 +07:00
commit bdc2295ee4
240 changed files with 94035 additions and 0 deletions
@@ -0,0 +1,183 @@
//{{NO_DEPENDENCIES}}
//
#define IDD_DISKMARK_DIALOG 102
#define IDR_MENU 129
#define IDR_MAINFRAME 130
#define IDD_ABOUT 131
#define IDD_COMMENT 132
#define IDR_PNG1 134
#define IDR_PNG2 135
#define IDR_ACCELERATOR 136
#define IDI_ICON1 138
#define IDI_TRAY_ICON 138
#define IDD_SETTINGS 139
#define IDD_FONT 140
#define IDC_OK 1001
#define IDC_BUTTON_ALL 1003
#define IDC_BUTTON_TEST_0 1004
#define IDC_BUTTON_TEST_1 1005
#define IDC_BUTTON_TEST_2 1006
#define IDC_BUTTON_TEST_3 1007
#define IDC_TEST_READ_0 1009
#define IDC_TEST_READ_1 1010
#define IDC_TEST_READ_2 1011
#define IDC_TEST_READ_3 1012
#define IDC_TEST_WRITE_0 1014
#define IDC_TEST_WRITE_1 1015
#define IDC_TEST_WRITE_2 1016
#define IDC_TEST_WRITE_3 1017
#define IDC_TEST_MIX_0 1019
#define IDC_TEST_MIX_1 1020
#define IDC_TEST_MIX_2 1021
#define IDC_TEST_MIX_3 1022
#define IDC_COMMENT 1023
#define IDC_COMMENT_EX 1024
#define IDC_COMBO_UNIT 1025
#define IDC_COMBO_COUNT 1026
#define IDC_COMBO_DRIVE 1027
#define IDC_COMBO_SIZE 1028
#define IDC_READ_UNIT 1029
#define IDC_WRITE_UNIT 1030
#define IDC_MIX_UNIT 1031
#define IDC_COMBO_MIX 1032
#define IDC_DEMO_SETTING 1033
#define IDC_HIDE 1034
#define IDC_LOGO 1100
#define IDC_PROJECT_SITE_1 1101
#define IDC_PROJECT_SITE_2 1102
#define IDC_PROJECT_SITE_3 1103
#define IDC_PROJECT_SITE_4 1104
#define IDC_PROJECT_SITE_5 1105
#define IDC_VERSION 1106
#define IDC_RELEASE 1107
#define IDC_COPYRIGHT1 1108
#define IDC_COPYRIGHT2 1109
#define IDC_COPYRIGHT3 1110
#define IDC_LICENSE 1111
#define IDC_EDITION 1112
#define IDC_FONT_FACE_COMBO 1201
#define IDC_FONT_SCALE_COMBO 1202
#define IDC_FONT_RENDER_COMBO 1203
#define IDC_FONT_FACE 1204
#define IDC_FONT_SCALE 1205
#define IDC_FONT_RENDER 1206
#define IDC_LABEL_DEMO 1301
#define IDC_COMBO_DATA 1302
#define IDC_LABEL_DATA 1303
#define IDC_SET_DEFAULT 1304
#define IDC_SET_NVME_8 1306
#define IDC_SET_FLASH_MEMORY 1307
#define IDC_LABEL_AFFINITY 1308
#define IDC_COMBO_AFFINITY 1309
#define IDC_LABEL_PEAK 1310
#define IDC_LABEL_TYPE 1311
#define IDC_LABEL_SIZE 1312
#define IDC_LABEL_QUEUES 1313
#define IDC_LABEL_THREADS 1314
#define IDC_LABEL_MEASURE_TIME 1315
#define IDC_LABEL_INTERVAL_TIME 1316
#define IDC_COMBO_MEASURE_TIME 1317
#define IDC_COMBO_INTERVAL_TIME 1318
#define IDC_LABEL_DEFAULT 1319
#define IDC_COMBO_BENCH_TYPE_0 1320
#define IDC_COMBO_BENCH_TYPE_1 1321
#define IDC_COMBO_BENCH_TYPE_2 1322
#define IDC_COMBO_BENCH_TYPE_3 1323
#define IDC_COMBO_BENCH_TYPE_4 1324
#define IDC_COMBO_BENCH_TYPE_5 1325
#define IDC_COMBO_BENCH_TYPE_8 1328
#define IDC_COMBO_BENCH_SIZE_0 1330
#define IDC_COMBO_BENCH_SIZE_1 1331
#define IDC_COMBO_BENCH_SIZE_2 1332
#define IDC_COMBO_BENCH_SIZE_3 1333
#define IDC_COMBO_BENCH_SIZE_4 1334
#define IDC_COMBO_BENCH_SIZE_5 1335
#define IDC_COMBO_BENCH_SIZE_8 1338
#define IDC_COMBO_BENCH_QUEUE_0 1340
#define IDC_COMBO_BENCH_QUEUE_1 1341
#define IDC_COMBO_BENCH_QUEUE_2 1342
#define IDC_COMBO_BENCH_QUEUE_3 1343
#define IDC_COMBO_BENCH_QUEUE_4 1344
#define IDC_COMBO_BENCH_QUEUE_5 1345
#define IDC_COMBO_BENCH_QUEUE_8 1348
#define IDC_COMBO_BENCH_THREAD_0 1350
#define IDC_COMBO_BENCH_THREAD_1 1351
#define IDC_COMBO_BENCH_THREAD_2 1352
#define IDC_COMBO_BENCH_THREAD_3 1353
#define IDC_COMBO_BENCH_THREAD_4 1354
#define IDC_COMBO_BENCH_THREAD_5 1355
#define IDC_COMBO_BENCH_THREAD_8 1358
#define ID_EXIT 32771
#define ID_ABOUT 32772
#define ID_THEME 32775
#define ID_THEME_DUMMY 32776
#define ID_COPY 32777
#define ID_LANGUAGE_DUMMY 32778
#define ID_LANGUAGE_A 32779
#define ID_LANGUAGE_O 32780
#define ID_A_DUMMY 32781
#define ID_O_DUMMY 32782
#define ID_BACK_PAGE 32787
#define ID_PRINT 32788
#define ID_FUNCTION_ZOOM 32789
#define ID_ZOOM_100 32803
#define ID_ZOOM_125 32804
#define ID_ZOOM_150 32805
#define ID_ZOOM_200 32806
#define ID_ZOOM_250 32807
#define ID_ZOOM_300 32808
#define ID_ZOOM_AUTO 33809
#define ID_HELP_HELP 32810
#define ID_CRYSTALDEWWORLD 32811
#define ID_FILE_BENCHMARKMODE 32812
#define ID_MODE_DEFAULT 32815
#define ID_MODE_ALL0X00 32816
#define ID_MODE_ALL0XFF 32817
#define ID_SETTINGS_QUEUESTHREADS 32818
#define ID_SAVE_TEXT 32819
#define ID_SAVE_IMAGE 32820
#define ID_FONT_SETTING 32821
#define ID_SETTING_DEFAULT 32822
#define ID_SETTING_NVME_8 32823
#define ID_SETTING_FLASH_MEMORY 32824
#define ID_INTERVAL_TIME_0 33820
#define ID_INTERVAL_TIME_1 33821
#define ID_INTERVAL_TIME_3 33822
#define ID_INTERVAL_TIME_5 33823
#define ID_INTERVAL_TIME_10 33824
#define ID_INTERVAL_TIME_30 33825
#define ID_INTERVAL_TIME_60 33826
#define ID_INTERVAL_TIME_180 33827
#define ID_INTERVAL_TIME_300 33828
#define ID_INTERVAL_TIME_600 33829
#define ID_PROFILE_DEFAULT 33830
#define ID_PROFILE_PEAK 33831
#define ID_PROFILE_REAL 33832
#define ID_PROFILE_DEMO 33833
#define ID_PROFILE_DEFAULT_MIX 33834
#define ID_PROFILE_PEAK_MIX 33835
#define ID_PROFILE_REAL_MIX 33836
#define ID_BENCHMARK_READ_WRITE 33837
#define ID_BENCHMARK_READ_ONLY 33838
#define ID_BENCHMARK_WRITE_ONLY 33839
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 141
#define _APS_NEXT_COMMAND_VALUE 33840
#define _APS_NEXT_CONTROL_VALUE 1360
#define _APS_NEXT_SYMED_VALUE 107
#endif
#endif
@@ -0,0 +1,5 @@
// stdafx.cpp : source file that includes just the standard includes
// DiskInfo.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
@@ -0,0 +1,228 @@
/*---------------------------------------------------------------------------*/
// Author : hiyohiyo
// Mail : hiyohiyo@crystalmark.info
// Web : https://crystalmark.info/
// License : MIT License
/*---------------------------------------------------------------------------*/
#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
#include <afxdtctl.h> // MFC IE4 Common Control support
#include <afxcmn.h> // MFC Windows Common Control support
#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='*'\"")
#ifdef UWP
#ifdef SUISHO_SHIZUKU_SUPPORT
#ifdef _M_ARM
#define PRODUCT_EDITION L"Shizuku Edition ARM32"
#elif _M_ARM64
#define PRODUCT_EDITION L"Shizuku Edition ARM64"
#elif _M_X64
#define PRODUCT_EDITION L"Shizuku Edition x64"
#else
#define PRODUCT_EDITION L"Shizuku Edition x86"
#endif
#else
#ifdef _M_ARM
#define PRODUCT_EDITION L"ARM32"
#elif _M_ARM64
#define PRODUCT_EDITION L"ARM64"
#elif _M_X64
#define PRODUCT_EDITION L"x64"
#else
#define PRODUCT_EDITION L"x86"
#endif
#endif
#else
#ifdef SUISHO_AOI_SUPPORT
#ifdef _M_ARM
#define PRODUCT_EDITION L"Aoi Edition ARM32"
#elif _M_ARM64
#define PRODUCT_EDITION L"Aoi Edition ARM64"
#elif _M_X64
#define PRODUCT_EDITION L"Aoi Edition x64"
#else
#define PRODUCT_EDITION L"Aoi Edition x86"
#endif
#elif MSI_MEI_SUPPORT
#ifdef _M_ARM
#define PRODUCT_EDITION L"MSI Mei Mihoshi Edition ARM32"
#elif _M_ARM64
#define PRODUCT_EDITION L"MSI Mei Mihoshi Edition ARM64"
#elif _M_X64
#define PRODUCT_EDITION L"MSI Mei Mihoshi Edition x64"
#else
#define PRODUCT_EDITION L"MSI Mei Mihoshi Edition x86"
#endif
#elif SUISHO_SHIZUKU_SUPPORT
#ifdef _M_ARM
#define PRODUCT_EDITION L"Shizuku Edition ARM32"
#elif _M_ARM64
#define PRODUCT_EDITION L"Shizuku Edition ARM64"
#elif _M_X64
#define PRODUCT_EDITION L"Shizuku Edition x64"
#else
#define PRODUCT_EDITION L"Shizuku Edition x86"
#endif
#else
#ifdef _M_ARM
#define PRODUCT_EDITION L"ARM32"
#elif _M_ARM64
#define PRODUCT_EDITION L"ARM64"
#elif _M_X64
#define PRODUCT_EDITION L"x64"
#else
#define PRODUCT_EDITION L"x86"
#endif
#endif
#endif
// Version Information
#define PRODUCT_NAME L"CrystalDiskMark"
#define PRODUCT_FILENAME L"CrystalDiskMark"
#define PRODUCT_VERSION L"9.0.3"
#define PRODUCT_SHORT_NAME L"CDM"
#define PRODUCT_RELEASE L"2026/05/24"
#define PRODUCT_COPY_YEAR L"2007-2026"
#define PRODUCT_LICENSE L"MIT License"
#ifdef SUISHO_AOI_SUPPORT
#define PRODUCT_COPYRIGHT_1 L"© 2007-2026 hiyohiyo"
#define PRODUCT_COPYRIGHT_2 L"© 2023-2026 nijihashi sola"
#define PRODUCT_COPYRIGHT_3 L""
#elif MSI_MEI_SUPPORT
#define PRODUCT_COPYRIGHT_1 L"© 2007-2026 hiyohiyo"
#define PRODUCT_COPYRIGHT_2 L"© 2024-2026 Micro-Star INT'L CO., LTD."
#define PRODUCT_COPYRIGHT_3 L""
#elif SUISHO_SHIZUKU_SUPPORT
#define PRODUCT_COPYRIGHT_1 L"© 2007-2026 hiyohiyo"
#define PRODUCT_COPYRIGHT_2 L"© 2012-2026 kirino kasumu"
#define PRODUCT_COPYRIGHT_3 L""
#else
#define PRODUCT_COPYRIGHT_1 L"© 2007-2026 hiyohiyo"
#define PRODUCT_COPYRIGHT_2 L""
#define PRODUCT_COPYRIGHT_3 L""
#endif
#ifdef MSI_MEI_SUPPORT
#define URL_MAIN_JA L"https://jp.msi.com/"
#define URL_MAIN_EN L"https://www.msi.com/"
#else
#define URL_MAIN_JA L"https://crystalmark.info/ja/"
#define URL_MAIN_EN L"https://crystalmark.info/en/"
#endif
#define URL_CRYSTAL_DEW_WORLD_JA L"https://crystalmark.info/ja/"
#define URL_CRYSTAL_DEW_WORLD_EN L"https://crystalmark.info/en/"
#define URL_VERSION_JA L"https://crystalmark.info/ja/software/crystaldiskmark/crystaldiskmark-history/"
#define URL_VERSION_EN L"https://crystalmark.info/en/software/crystaldiskmark/crystaldiskmark-history/"
#define URL_LICENSE_JA L"https://crystalmark.info/ja/software/crystaldiskmark/crystaldiskmark-license/"
#define URL_LICENSE_EN L"https://crystalmark.info/en/software/crystaldiskmark/crystaldiskmark-license/"
#define URL_HELP_JA L"https://crystalmark.info/ja/software/crystaldiskmark/"
#define URL_HELP_EN L"https://crystalmark.info/en/software/crystaldiskmark/"
#define URL_DISKSPD L"https://github.com/microsoft/diskspd"
#ifdef SUISHO_AOI_SUPPORT
#define URL_PROJECT_SITE_1 L"https://twitter.com/sola_no_crayon"
#define URL_PROJECT_SITE_2 L"https://twitter.com/harakeiko0718"
#define URL_PROJECT_SITE_3 L"https://instagram.com/kotomi_wicke?igshid=OGQ5ZDc2ODk2ZA=="
#define URL_PROJECT_SITE_4 L"https://twitter.com/bellche"
#define URL_PROJECT_SITE_5 L""
#elif MSI_MEI_SUPPORT
#define URL_PROJECT_SITE_1 L"https://jp.msi.com/Landing/mihoshimei/nb"
#define URL_PROJECT_SITE_2 L"https://twitter.com/hoshi_u3"
#define URL_PROJECT_SITE_3 L"https://twitter.com/mokowata"
#define URL_PROJECT_SITE_4 L"https://jp.msi.com/"
#define URL_PROJECT_SITE_5 L"https://jp.msi.com/"
#elif SUISHO_SHIZUKU_SUPPORT
#define URL_PROJECT_SITE_1 L"https://twitter.com/kirinokasumu"
#define URL_PROJECT_SITE_2 L"https://linux-ha.osdn.jp/wp/"
#define URL_PROJECT_SITE_3 L"https://ch.nicovideo.jp/oss"
#define URL_PROJECT_SITE_4 L"https://twitter.com/bellche"
#define URL_PROJECT_SITE_5 L"https://suishoshizuku.com/"
#endif
#define MAX_THREADS 64
#define MAX_QUEUES 512
static const int RE_EXEC = 5963;
#pragma warning(disable : 4996)
//------------------------------------------------
// Option Flags
//------------------------------------------------
// For Task Tray Icon Feature
// #define OPTION_TASK_TRAY
//------------------------------------------------
// Global Sttings
//------------------------------------------------
#define DEFAULT_FONT_FACE_1 L"Segoe UI"
#define DEFAULT_FONT_FACE_2 L"Tahoma"
#define THEME_DIR L"CdmResource\\themes\\"
#define LANGUAGE_DIR L"CdmResource\\language\\"
#define VOICE_DIR L"CdmResource\\voice\\"
#define MENU_THEME_INDEX 3
#define MENU_LANG_INDEX 5
#define DEFAULT_THEME L"Default"
#define DEFAULT_LANGUAGE L"English"
#define TIMER_UPDATE_DIALOG 500
#define WM_UPDATE_SCORE (WM_APP+0x1001)
#define WM_UPDATE_MESSAGE (WM_APP+0x1002)
#define WM_EXIT_BENCHMARK (WM_APP+0x1003)