Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
72e3184260 |
Binary file not shown.
30
main.c
30
main.c
@ -93,11 +93,11 @@ const SYSTEM_VERSION SystemVersionList[] = {
|
|||||||
{.Key = "DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4", .English = "Windows 10/11 Enterprise N", .Chinese = "Windows 10/11 企业版 N"},
|
{.Key = "DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4", .English = "Windows 10/11 Enterprise N", .Chinese = "Windows 10/11 企业版 N"},
|
||||||
{.Key = "YYVX9-NTFWV-6MDM3-9PT4T-4M68B", .English = "Windows 10/11 Enterprise G", .Chinese = "Windows 10/11 企业版 G"},
|
{.Key = "YYVX9-NTFWV-6MDM3-9PT4T-4M68B", .English = "Windows 10/11 Enterprise G", .Chinese = "Windows 10/11 企业版 G"},
|
||||||
{.Key = "44RPN-FTY23-9VTTB-MP9BX-T84FV", .English = "Windows 10/11 Enterprise G N", .Chinese = "Windows 10/11 企业版 G N"},
|
{.Key = "44RPN-FTY23-9VTTB-MP9BX-T84FV", .English = "Windows 10/11 Enterprise G N", .Chinese = "Windows 10/11 企业版 G N"},
|
||||||
{.Key = "M7XTQ-FN8P6-TTKYV-9D4CC-J462D", .English = "Windows 10/11 LTSC", .Chinese = "Windows 10/11 长期支持版"},
|
{.Key = "M7XTQ-FN8P6-TTKYV-9D4CC-J462D", .English = "Windows 10/11 LTSC", .Chinese = "Windows 10/11 LTSC 长期支持版"},
|
||||||
{.Key = "92NFX-8DJQP-P6BBQ-THF9C-7CG2H", .English = "Windows 10/11 LTSC N", .Chinese = "Windows 10/11 长期支持版 N"},
|
{.Key = "92NFX-8DJQP-P6BBQ-THF9C-7CG2H", .English = "Windows 10/11 LTSC N", .Chinese = "Windows 10/11 LTSC 长期支持版 N"},
|
||||||
{.Key = "KBN8V-HFGQ4-MGXVD-347P6-PDQGT", .English = "Windows 10/11 IoT LTSC", .Chinese = "Windows 10/11 物联网 长期支持版"},
|
{.Key = "KBN8V-HFGQ4-MGXVD-347P6-PDQGT", .English = "Windows 10/11 IoT LTSC", .Chinese = "Windows 10/11 物联网 LTSC 长期支持版"},
|
||||||
{.Key = "DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ", .English = "Windows 10/11 LTSB 2016", .Chinese = "Windows 10/11 长期支持版 2016"},
|
{.Key = "DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ", .English = "Windows 10/11 LTSB 2016", .Chinese = "Windows 10/11 LTSB 长期支持版 2016"},
|
||||||
{.Key = "QFFDN-GRT3P-VKWWX-X7T3R-8B639", .English = "Windows 10/11 LTSB 2016 N", .Chinese = "Windows 10/11 长期支持版 2016 N"},
|
{.Key = "QFFDN-GRT3P-VKWWX-X7T3R-8B639", .English = "Windows 10/11 LTSB 2016 N", .Chinese = "Windows 10/11 LTSB 长期支持版 2016 N"},
|
||||||
{.Key = "VDYBN-27WPP-V4HQT-9VMD4-VMK7H", .English = "Windows Server 2022 Standard", .Chinese = "Windows Server 2022 标准版"},
|
{.Key = "VDYBN-27WPP-V4HQT-9VMD4-VMK7H", .English = "Windows Server 2022 Standard", .Chinese = "Windows Server 2022 标准版"},
|
||||||
{.Key = "WX4NM-KYWYW-QJJR4-XV3QB-6VM33", .English = "Windows Server 2022 Datacenter", .Chinese = "Windows Server 2022 数据中心版"},
|
{.Key = "WX4NM-KYWYW-QJJR4-XV3QB-6VM33", .English = "Windows Server 2022 Datacenter", .Chinese = "Windows Server 2022 数据中心版"},
|
||||||
{.Key = "NTBV8-9K7Q8-V27C6-M2BTV-KHMXV", .English = "Windows Server 2022 Datacenter Azure", .Chinese = "Windows Server 2022 数据中心版 Azure"},
|
{.Key = "NTBV8-9K7Q8-V27C6-M2BTV-KHMXV", .English = "Windows Server 2022 Datacenter Azure", .Chinese = "Windows Server 2022 数据中心版 Azure"},
|
||||||
@ -326,6 +326,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
// 设置下拉列表的字体
|
// 设置下拉列表的字体
|
||||||
SendMessage(ActionBtn, WM_SETFONT, (WPARAM)hFont, TRUE);
|
SendMessage(ActionBtn, WM_SETFONT, (WPARAM)hFont, TRUE);
|
||||||
|
|
||||||
|
TranslateApp();
|
||||||
|
|
||||||
// 消息循环
|
// 消息循环
|
||||||
while(GetMessage(&msg, NULL, 0, 0) > 0) {
|
while(GetMessage(&msg, NULL, 0, 0) > 0) {
|
||||||
TranslateMessage(&msg);
|
TranslateMessage(&msg);
|
||||||
@ -469,15 +471,15 @@ void TranslateChinese(void)
|
|||||||
void TranslateApp(void)
|
void TranslateApp(void)
|
||||||
{
|
{
|
||||||
switch (CurSystemLang) {
|
switch (CurSystemLang) {
|
||||||
case ENGLISH:
|
case ENGLISH:
|
||||||
TranslateEnglish();
|
TranslateEnglish();
|
||||||
break;
|
break;
|
||||||
case CHINESE:
|
case CHINESE:
|
||||||
TranslateChinese();
|
TranslateChinese();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
TranslateEnglish();
|
TranslateEnglish();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 默认系统版本选中第一个选项
|
// 默认系统版本选中第一个选项
|
||||||
|
Loading…
Reference in New Issue
Block a user