├── .gitattributes
├── images
├── UI.jpg
└── 2.2.0.1.jpg
├── CMWTAT_DIGITAL
├── CMWTAT.ico
├── CMWTAT.png
├── FodyWeavers.xml
├── app.config
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── packages.config
├── Domain
│ ├── NotifyPropertyChangedExtension.cs
│ ├── ViewModel.cs
│ └── IsSN.cs
├── CMWTAT_DIGITAL.csproj.user
├── App.xaml
├── App.xaml.cs
├── app.manifest
├── Lang
│ ├── zh.xaml
│ ├── ja.xaml
│ ├── fr.xaml
│ ├── en.xaml
│ └── ru.xaml
├── CMWTAT_DIGITAL.csproj
├── MainWindow.xaml
└── OSVersionInfoClass.cs
├── CMWTAT_Digital_Release_2_7_2_0.exe
├── _config.yml
├── DirectRun.ps1
├── CDNDirectRun.ps1
├── .github
└── ISSUE_TEMPLATE
│ └── bug_report.md
├── README.md
├── CMWTAT_DIGITAL.sln
├── README.zh.md
├── README.en.md
├── .gitignore
└── LICENSE
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/images/UI.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TGSAN/CMWTAT_Digital_Edition/HEAD/images/UI.jpg
--------------------------------------------------------------------------------
/images/2.2.0.1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TGSAN/CMWTAT_Digital_Edition/HEAD/images/2.2.0.1.jpg
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/CMWTAT.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TGSAN/CMWTAT_Digital_Edition/HEAD/CMWTAT_DIGITAL/CMWTAT.ico
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/CMWTAT.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TGSAN/CMWTAT_Digital_Edition/HEAD/CMWTAT_DIGITAL/CMWTAT.png
--------------------------------------------------------------------------------
/CMWTAT_Digital_Release_2_7_2_0.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TGSAN/CMWTAT_Digital_Edition/HEAD/CMWTAT_Digital_Release_2_7_2_0.exe
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
2 | show_downloads: false
3 | title: CloudMoe Windows 10 Toolkit Digital Edition
4 | description: CloudMoe Windows 10 Acivation Toolkit get digital license, the best open source Win 10 activator in GitHub.
GitHub 上最棒的开源 Win10 数字权利(数字许可证)激活工具!
5 | # SEORelate
6 | google_site_verification :
7 | bing_site_verification :
8 | alexa_site_verification :
9 | yandex_site_verification :
10 | tags: [Digital License, Windows 10 Acivation Toolkit, Activator]
11 | navbar-links:
12 | Resources:
13 | - Learn markdown: "http://www.markdowntutorial.com/"
14 | - GitHub Pages: "https://pages.github.com/"
15 |
16 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Domain/NotifyPropertyChangedExtension.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Runtime.CompilerServices;
5 |
6 | namespace CMWTAT_DIGITAL.Domain
7 | {
8 | public static class NotifyPropertyChangedExtension
9 | {
10 | public static void MutateVerbose(this INotifyPropertyChanged instance, ref TField field, TField newValue, Action raise, [CallerMemberName] string propertyName = null)
11 | {
12 | if (EqualityComparer.Default.Equals(field, newValue)) return;
13 | field = newValue;
14 | raise?.Invoke(new PropertyChangedEventArgs(propertyName));
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/DirectRun.ps1:
--------------------------------------------------------------------------------
1 | $isAdmin = (New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
2 |
3 | if (-not $isAdmin) {
4 | Start-Process powershell -ArgumentList "irm https://tgsan.github.io/CMWTAT_Digital_Edition/DirectRun.ps1 | iex" -Verb RunAs
5 | Exit
6 | }
7 |
8 | # $exePath = ".\CMWTAT_DIGITAL\bin\Debug\CMWTAT_DIGITAL.exe"
9 | # $exeBytes = [System.IO.File]::ReadAllBytes($exePath)
10 | # $bytes = $exeBytes
11 |
12 | $bytes = (Invoke-WebRequest "https://tgsan.github.io/CMWTAT_Digital_Edition/CMWTAT_Digital_Release_2_7_2_0.exe").Content
13 | $assembly = [System.Reflection.Assembly]::Load($bytes)
14 | $entryPointMethod = $assembly.EntryPoint
15 | $entryPointMethod.Invoke($null, @())
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/CMWTAT_DIGITAL.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | publish\
9 |
10 |
11 |
12 |
13 |
14 | zh-CN
15 | false
16 |
17 |
18 | -l -%3f
19 |
20 |
--------------------------------------------------------------------------------
/CDNDirectRun.ps1:
--------------------------------------------------------------------------------
1 | $isAdmin = (New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
2 |
3 | if (-not $isAdmin) {
4 | Start-Process powershell -ArgumentList "irm https://fastly.jsdelivr.net/gh/TGSAN/CMWTAT_Digital_Edition/CDNDirectRun.ps1 | iex" -Verb RunAs
5 | Exit
6 | }
7 |
8 | # $exePath = ".\CMWTAT_DIGITAL\bin\Debug\CMWTAT_DIGITAL.exe"
9 | # $exeBytes = [System.IO.File]::ReadAllBytes($exePath)
10 | # $bytes = $exeBytes
11 |
12 | $bytes = (Invoke-WebRequest "https://release-download.static.cloudmoe.com/TGSAN/CMWTAT_Digital_Edition/releases/download/2.7.2.0/CMWTAT_Digital_Release_2_7_2_0.exe").Content
13 | $assembly = [System.Reflection.Assembly]::Load($bytes)
14 | $entryPointMethod = $assembly.EntryPoint
15 | $entryPointMethod.Invoke($null, @())
16 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **PC Information (please complete the following information):**
27 | - CPU Arch: [e.g. x86/x64/ARM64]
28 | - Windows Version: [e.g. Windows 10 10.0.10240.0]
29 | - Original SKU: [e.g. Home/Pro/Education etc.]
30 | - Target SKU: [e.g. Home/Pro/Education etc.]
31 | - Version [e.g. 2.6.2.0]
32 |
33 | **Additional context**
34 | Add any other context about the problem here.
35 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Official Site 官方网站
2 |
3 | [https://cmwtat.cloudmoe.com]
4 |
5 | # CloudMoe Windows 10+ Activation Toolkit Digital Edition
6 |
7 | This toolkit can activate your Windows 10 and Windows 11 use digital license.
8 |
9 | 此工具可以使用数字权利激活您的 `Windows 10` 和 `Windows 11`。
10 |
11 | A Windows 10 and Windows 11 digital license activation tool written in CSharp.
12 |
13 | 一款使用`CSharp`编写的 `Windows 10` 和 `Windows 11` 数字权利激活工具。
14 |
15 | ![UI界面截图][UI_image]
16 |
17 | # Usage 使用
18 |
19 | ### [English Readme](./README.en.md)
20 |
21 | ### [中文 Readme](./README.zh.md)
22 |
23 | # License 许可协议
24 |
25 | [GPL-2.0](./LICENSE)
26 |
27 | # Contributors 贡献者
28 |
29 | [https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]
30 |
31 | [UI_image]:./images/UI.jpg
32 | [https://cmwtat.cloudmoe.com]:https://cmwtat.cloudmoe.com
33 | [https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]:https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors
34 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Domain/ViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Linq;
5 |
6 | namespace CMWTAT_DIGITAL.Domain
7 | {
8 | class ViewModel : INotifyPropertyChanged
9 | {
10 | private string _sn;
11 |
12 | public ViewModel()
13 | {
14 | LongListToTestComboVirtualization = new List(Enumerable.Range(0, 1000));
15 | }
16 |
17 | public string SN
18 | {
19 | get { return _sn; }
20 | set
21 | {
22 | this.MutateVerbose(ref _sn, value, RaisePropertyChanged());
23 | }
24 | }
25 |
26 | public IList LongListToTestComboVirtualization { get; }
27 |
28 | public event PropertyChangedEventHandler PropertyChanged;
29 |
30 | private Action RaisePropertyChanged()
31 | {
32 | return args => PropertyChanged?.Invoke(this, args);
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace CMWTAT_DIGITAL.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.11.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27130.2036
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CMWTAT_DIGITAL", "CMWTAT_DIGITAL\CMWTAT_DIGITAL.csproj", "{961DE925-B82C-4515-8FBD-6805E36D1212}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {961DE925-B82C-4515-8FBD-6805E36D1212}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {961DE925-B82C-4515-8FBD-6805E36D1212}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {961DE925-B82C-4515-8FBD-6805E36D1212}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {961DE925-B82C-4515-8FBD-6805E36D1212}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {653ED007-6FEF-4A82-9898-F60578205F1C}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows;
3 |
4 | namespace CMWTAT_DIGITAL
5 | {
6 | ///
7 | /// App.xaml 的交互逻辑
8 | ///
9 | public partial class App : Application
10 | {
11 | public static bool autoact = false;
12 | public static bool hiderun = false;
13 | public static bool expact = false;
14 | public static bool log2file = false;
15 | public static bool showhelp = false;
16 |
17 | protected override void OnStartup(StartupEventArgs e)
18 | {
19 | foreach (string arg in e.Args)
20 | {
21 | Console.WriteLine("arg: " + arg);
22 | if (arg == "-a" || arg == "--auto")
23 | {
24 | Console.WriteLine("AUTO: True");
25 | autoact = true;
26 | }
27 | if (arg == "-h" || arg == "--hide")
28 | {
29 | Console.WriteLine("HIDE: True");
30 | hiderun = true;
31 | }
32 | if (arg == "-e" || arg == "--expact")
33 | {
34 | Console.WriteLine("EXPACT: True");
35 | expact = true;
36 | }
37 | if (arg == "-l" || arg == "--log")
38 | {
39 | Console.WriteLine("LOG: True");
40 | log2file = true;
41 | }
42 | if (arg == "-?" || arg == "--help")
43 | {
44 | Console.WriteLine("SHOWHELP: True");
45 | showhelp = true;
46 | }
47 | }
48 | base.OnStartup(e);
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // 有关程序集的一般信息由以下
8 | // 控制。更改这些特性值可修改
9 | // 与程序集关联的信息。
10 | [assembly: AssemblyTitle("CMWTAT Digital Edition")]
11 | [assembly: AssemblyDescription("CloudMoe Windows 10+ Activation Toolkit")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("CloudMoe Network")]
14 | [assembly: AssemblyProduct("CMWTAT Digital Edition")]
15 | [assembly: AssemblyCopyright("Copyright © CloudMoe Saltfish Studio 2024")]
16 | [assembly: AssemblyTrademark("CloudMoe Saltfish Studio")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // 将 ComVisible 设置为 false 会使此程序集中的类型
20 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
21 | //请将此类型的 ComVisible 特性设置为 true。
22 | [assembly: ComVisible(false)]
23 |
24 | //若要开始生成可本地化的应用程序,请设置
25 | //.csproj 文件中的 CultureYouAreCodingWith
26 | //例如,如果您在源文件中使用的是美国英语,
27 | //使用的是美国英语,请将 设置为 en-US。 然后取消
28 | //对以下 NeutralResourceLanguage 特性的注释。 更新
29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置
36 | //(未在页面中找到资源时使用,
37 | //或应用程序资源字典中找到时使用)
38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
39 | //(未在页面中找到资源时使用,
40 | //、应用程序或任何主题专用资源字典中找到时使用)
41 | )]
42 |
43 |
44 | // 程序集的版本信息由下列四个值组成:
45 | //
46 | // 主版本
47 | // 次版本
48 | // 生成号
49 | // 修订号
50 | //
51 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
52 | // 方法是按如下所示使用“*”: :
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("2.7.2.0")]
55 | [assembly: AssemblyFileVersion("2.7.2.0")]
56 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
51 |
52 |
53 |
54 | true
55 |
56 |
57 |
58 |
59 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/README.zh.md:
--------------------------------------------------------------------------------
1 | # 官方网站
2 |
3 | [https://cmwtat.cloudmoe.com]
4 |
5 | # 云萌 Windows 10+ 数字权利激活工具
6 |
7 | 此工具可以使用数字权利激活您的 `Windows 10` 和 `Windows 11`。
8 |
9 | 一款使用`CSharp`编写的 `Windows 10` 和 `Windows 11` 数字权利激活工具。
10 |
11 | ![UI界面截图][UI_image]
12 |
13 | # 下载
14 |
15 | ## 保存到本地并使用
16 |
17 | > 由于被 Microsoft Defender 标记为 “Windows 激活工具”,所以可能会下载后提示检测到威胁并自动删除。
18 |
19 | 1. 下载 [Releases](https://github.com/TGSAN/CMWTAT_Digital_Edition/releases/latest) 里的 `.exe` 发行文件。
20 |
21 | 2. 运行即可。
22 |
23 | ## 直接使用
24 |
25 | > 由于每次启动时都会联网拉取最新版本,所以启动时间会更慢。
26 | > 由于被 Microsoft Defender 标记为 “Windows 激活工具”,所以可能无法执行或报错。
27 |
28 | 1. 按 `Win + R` 组合键打开运行对话框。
29 |
30 | 2. 复制以下命令到运行对话框中并按回车键。
31 |
32 | ```
33 | powershell -Command "irm https://tgsan.github.io/CMWTAT_Digital_Edition/DirectRun.ps1 | iex"
34 | ```
35 |
36 | > 由于中国大陆部分地区的部分运营商屏蔽了 github.io,如果报错或速度缓慢可以使用以下命令替代
37 |
38 | ```
39 | powershell -Command "irm https://fastly.jsdelivr.net/gh/TGSAN/CMWTAT_Digital_Edition/CDNDirectRun.ps1 | iex"
40 | ```
41 |
42 | 3. 等待拉取成功后,会自动启动工具。
43 |
44 | # 使用
45 |
46 | ## 入门
47 |
48 | ### 使用自动模式激活 `Windows 10` 或 `Windows 11`
49 |
50 | 1. 下载 Releases 里的 `.exe` 发行文件。
51 |
52 | 2. 运行它。
53 |
54 | 3. 点按 `激活` 按钮。
55 |
56 | 4. 完成~
57 |
58 | ## 进阶
59 |
60 | ### 在不同版本 `Windows` 之间转换
61 |
62 | * 注意: 目前已知 `Windows` 的 `专业版(Professional)`、`专业工作站版(ProfessionalWorkstation)`、`教育版(Education)`、`专业教育版(ProfessionalEducation)`、`企业版(Enterprise)` 之间可以进行互相转换(N版本与LTSB版本除外),而这些版本与`家庭版(Core)`均不能直接一键转换,如需转换请使用 2.6 版本新增的 `升级到完整版 Windows` 功能(此功能仅在核心版操作系统上显示)或使用 `Windows设置` 中的 `更改产品密钥` 功能进行升级。
63 | 激活 `物联网企业版(IoTEnterprise)` 版本前需要先激活 `企业版(Enterprise)`。
64 |
65 | ##### 自动模式
66 |
67 | 1. 运行它。
68 |
69 | 2. 选择 `自动模式` 。
70 |
71 | 3. 在下拉列表中选择要升级到的版本。
72 |
73 | 4. 点按 `版本无缝转换` 按钮。
74 |
75 | 5. 完成。
76 |
77 | ##### 手动模式
78 |
79 | * 注意: 此方法不适用于某些版本的激活,如 `专业教育版(ProfessionalEducation)` ,即使你输入了对应的OEM零售密钥。
80 |
81 | 1. 运行它。
82 |
83 | 2. 选择 `手动模式` 。
84 |
85 | 3. 输入框中输入需要升级到的版本对应的OEM零售密钥(不需要产品包装上的激活密钥,而是微软官方分配的密钥,如专业版对应密钥为 `VK7JG-NPHTM-C97JM-9MPGT-3V66T`)。
86 |
87 | 4. 点按 `版本无缝转换` 按钮。
88 |
89 | 5. 完成。
90 |
91 | ### 通过 `手动模式` 激活不在列表中的 `Windows` 版本
92 |
93 | 1. 运行它。
94 |
95 | 2. 选择 `手动模式` 。
96 |
97 | 3. 输入框中输入需要升级到的版本对应的OEM零售密钥(不需要产品包装上的激活密钥,而是微软官方分配的密钥,如专业版对应密钥为 `VK7JG-NPHTM-C97JM-9MPGT-3V66T`)。
98 |
99 | 4. 点按 `激活` 按钮。
100 |
101 | 5. 完成。
102 |
103 | ## 启动参数
104 |
105 | ```
106 | -? --help 启动后弹出启动参数帮助对话框。
107 | -a --auto 启动后自动激活系统。
108 | -e --expact 自动激活系统时允许使用实验性方案。(需要与 -a 或 --auto 配合使用)
109 | -h --hide 以隐藏模式启动,激活进度以通知形式显示。(需要与 -a 或 --auto 配合使用)
110 | ```
111 |
112 | # 许可协议
113 |
114 | [GPL-2.0](./LICENSE)
115 |
116 | # 贡献者
117 |
118 | [https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]
119 |
120 | [UI_image]:./images/UI.jpg
121 | [https://cmwtat.cloudmoe.com]:https://cmwtat.cloudmoe.com
122 | [https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]:https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors
123 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Domain/IsSN.cs:
--------------------------------------------------------------------------------
1 | using System.Globalization;
2 | using System.Text.RegularExpressions;
3 | using System.Windows.Controls;
4 |
5 | namespace CMWTAT_DIGITAL.Domain
6 | {
7 | class IsSN : ValidationRule
8 | {
9 | #region 匹配方法
10 |
11 | ///
12 | /// 验证字符串是否匹配正则表达式描述的规则
13 | ///
14 | /// 待验证的字符串
15 | /// 正则表达式字符串
16 | /// 是否匹配
17 | public static bool IsMatch(string inputStr, string patternStr)
18 | {
19 | return IsMatch(inputStr, patternStr, false, false);
20 | }
21 |
22 | ///
23 | /// 验证字符串是否匹配正则表达式描述的规则
24 | ///
25 | /// 待验证的字符串
26 | /// 正则表达式字符串
27 | /// 匹配时是否不区分大小写
28 | /// 是否匹配
29 | public static bool IsMatch(string inputStr, string patternStr, bool ifIgnoreCase)
30 | {
31 | return IsMatch(inputStr, patternStr, ifIgnoreCase, false);
32 | }
33 |
34 | ///
35 | /// 验证字符串是否匹配正则表达式描述的规则
36 | ///
37 | /// 待验证的字符串
38 | /// 正则表达式字符串
39 | /// 匹配时是否不区分大小写
40 | /// 是否验证空白字符串
41 | /// 是否匹配
42 | public static bool IsMatch(string inputStr, string patternStr, bool ifIgnoreCase, bool ifValidateWhiteSpace)
43 | {
44 | if (!ifValidateWhiteSpace && string.IsNullOrEmpty(inputStr))
45 | return false;//如果不要求验证空白字符串而此时传入的待验证字符串为空白字符串,则不匹配
46 | Regex regex = null;
47 | if (ifIgnoreCase)
48 | regex = new Regex(patternStr, RegexOptions.IgnoreCase);//指定不区分大小写的匹配
49 | else
50 | regex = new Regex(patternStr);
51 | return regex.IsMatch(inputStr);
52 | }
53 |
54 | #endregion
55 |
56 | public override ValidationResult Validate(object value, CultureInfo cultureInfo)
57 | {
58 | //Console.WriteLine("\""+value+"\"");
59 | //return string.IsNullOrWhiteSpace((value ?? "").ToString())
60 | // ? new ValidationResult(false, "Key is required.")
61 | // : ValidationResult.ValidResult;
62 |
63 | string pattern = @"^[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}$";
64 |
65 | if (IsMatch((value ?? "").ToString(), pattern))
66 | {
67 | return ValidationResult.ValidResult;
68 |
69 | }
70 | else if (string.IsNullOrWhiteSpace((value ?? "").ToString()))
71 | {
72 | return new ValidationResult(false, "Please enter the key for the current edition.");
73 | }
74 | else
75 | {
76 | return new ValidationResult(false, "Invalid format.");
77 | }
78 |
79 | }
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace CMWTAT_DIGITAL.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CMWTAT_DIGITAL.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 重写当前线程的 CurrentUICulture 属性,对
51 | /// 使用此强类型资源类的所有资源查找执行重写。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 |
63 | ///
64 | /// 查找 System.Byte[] 类型的本地化资源。
65 | ///
66 | internal static byte[] ClipUp {
67 | get {
68 | object obj = ResourceManager.GetObject("ClipUp", resourceCulture);
69 | return ((byte[])(obj));
70 | }
71 | }
72 |
73 | ///
74 | /// 查找类似于 (图标) 的 System.Drawing.Icon 类型的本地化资源。
75 | ///
76 | internal static System.Drawing.Icon CMWTAT_ICON {
77 | get {
78 | object obj = ResourceManager.GetObject("CMWTAT_ICON", resourceCulture);
79 | return ((System.Drawing.Icon)(obj));
80 | }
81 | }
82 |
83 | ///
84 | /// 查找 System.Byte[] 类型的本地化资源。
85 | ///
86 | internal static byte[] slmgr {
87 | get {
88 | object obj = ResourceManager.GetObject("slmgr", resourceCulture);
89 | return ((byte[])(obj));
90 | }
91 | }
92 | }
93 | }
94 |
--------------------------------------------------------------------------------
/README.en.md:
--------------------------------------------------------------------------------
1 | # Official Site
2 |
3 | [https://cmwtat.cloudmoe.com]
4 |
5 | # CloudMoe Windows 10+ Activation Toolkit Digital Edition
6 |
7 | This toolkit can activate your Windows 10 and Windows 11 use digital license.
8 |
9 | A Windows 10 and Windows 11 digital license activation tool written in CSharp.
10 |
11 | ![UI Screenshot][UI_image]
12 |
13 | # Download
14 |
15 | ## Save Locally and Use
16 |
17 | > Since it is flagged by Microsoft Defender as a "Windows activation tool," it may be detected as a threat and automatically deleted after downloading.
18 |
19 | 1. Download the `.exe` release file from [Releases](https://github.com/TGSAN/CMWTAT_Digital_Edition/releases/latest).
20 |
21 | 2. Run the file directly.
22 |
23 | ## Use Directly
24 |
25 | > Since it fetches the latest version online every time it starts, the startup time will be slower.
26 |
27 | 1. Press the `Win + R` key combination to open the Run dialog.
28 |
29 | 2. Copy the following command into the Run dialog and press Enter.
30 |
31 | ```
32 | powershell -Command "irm https://tgsan.github.io/CMWTAT_Digital_Edition/DirectRun.ps1 | iex"
33 | ```
34 |
35 | 3. Wait for the fetch to complete, and the tool will start automatically.
36 |
37 | # Usage
38 |
39 | ## Getting started
40 |
41 | ### Use Auto Mode to activate `Windows 10` or `Windows 11`
42 |
43 | 1. Download release `.exe` file.
44 |
45 | 2. Run it.
46 |
47 | 3. Click `Activate` button.
48 |
49 | 4. Enjoy it :)
50 |
51 | ## Advanced
52 |
53 | ### Switch between different editions of `Windows`
54 |
55 | * Note: Currently, it is known that `Windows` `Professional`, `ProfessionalWorkstation`, `Education`, `ProfessionalEducation`, and `Enterprise` editions can be switched between each other (except for N and LTSB editions), and these editions cannot be directly converted to `Home (Core)` edition with one click. If you need to switch, please use the `Upgrade to full version of Windows` function added in version 2.6 (this function only appears on the core edition of the operating system) or use the `Change product key` function in `Windows Settings` to upgrade.
56 | You need to activate the `Enterprise` edition before activating the `IoTEnterprise` edition.
57 |
58 | ##### Auto Mode
59 |
60 | 1. Run it.
61 |
62 | 2. Select `Auto Mode` 。
63 |
64 | 3. Select the edition you want to upgrade to from the drop-down list.
65 |
66 | 4. Press the `Convert versions` conversion button.
67 |
68 | 5. Done.
69 |
70 | ##### Manual Mode
71 |
72 | * Note: This method does not work for activating some versions, such as `Professional Education (ProfessionalEducation)`, even if you enter the corresponding OEM retail key.
73 |
74 | 1. Run it.
75 |
76 | 2. Select `Manual Mode`.
77 |
78 | 3. Enter the OEM retail key corresponding to the version you want to upgrade to in the input box (you do not need the activation key on the product packaging, but the key assigned by Microsoft official, such as the professional version corresponding key is `VK7JG-NPHTM-C97JM-9MPGT-3V66T`).
79 |
80 | 4. Press the `Convert versions` conversion button.
81 |
82 | 5. Done.
83 |
84 | ### Activate a `Windows` edition that is not in the list using `Manual Mode`
85 |
86 | 1. Run it.
87 |
88 | 2. Select `Manual Mode`.
89 |
90 | 3. Enter the OEM retail key corresponding to the version you want to upgrade to in the input box (you do not need the activation key on the product packaging, but the key assigned by Microsoft official, such as the professional version corresponding key is `VK7JG-NPHTM-C97JM-9MPGT-3V66T`).
91 |
92 | 4. Press the `Activate` conversion button.
93 |
94 | 5. Done.
95 |
96 | ## Startup Parameters
97 |
98 | ```
99 | -? --help Pop up the startup parameter help dialog after startup.
100 | -a --auto Automatically activate the system after startup.
101 | -e --expact Allow the use of experimental schemes when automatically activating the system. (Need to be used with -a or --auto)
102 | -h --hide Start in hidden mode, the activation progress is displayed in the form of notifications. (Need to be used with -a or --auto)
103 | ```
104 |
105 | # License
106 |
107 | [GPL-2.0](./LICENSE)
108 |
109 | # Contributors
110 |
111 | [https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]
112 |
113 | [UI_image]:./images/UI.jpg
114 | [https://cmwtat.cloudmoe.com]:https://cmwtat.cloudmoe.com
115 | [https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]:https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors
116 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
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 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 |
122 | ..\res\clipup.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
123 |
124 |
125 | ..\CMWTAT.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
126 |
127 |
128 | ..\Res\slmgr.vbs;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
129 |
130 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Lang/zh.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 |
10 | Microsoft YaHei UI
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 | 云萌 Windows 10+ 数字权利激活工具
38 |
39 |
40 | CMWTAT Digital Edition V2
41 |
42 |
43 | 新版本可用!
44 |
45 |
46 | 升级到完整版 Windows
47 |
48 |
49 | 当前版本
50 |
51 |
52 | 最新版本
53 |
54 |
55 | 自动模式
56 |
57 |
58 | 手动模式
59 |
60 |
61 | 激活
62 |
63 |
64 | 版本无缝转换 (安装产品密钥而不激活)
65 |
66 |
67 | 升级到完整版 Windows
68 |
69 |
70 | 测试文本
71 |
72 |
73 | 载入中
74 |
75 |
76 | 激活中
77 |
78 |
79 | 完成
80 |
81 |
82 | 云萌 Windows 10+ 激活工具 V2
83 |
84 |
85 | 运行中。
86 |
87 |
88 | 实验性
89 |
90 |
91 | 注意
92 |
93 |
94 | 系统版本
95 |
96 |
97 | 无法在支持列表里识别您的操作系统版本,可能不受支持。
98 |
99 |
100 | 只找到用于此版本系统的实验性选项,成功概率极低。
101 |
102 |
103 | 你的系统版本可能不受支持,程序即将退出。不过你可以尝试添加 --expact 或者 -e 参数来启动。
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 | 系统返回:
173 |
174 |
175 |
179 |
180 |
181 | 当前正在使用核心版 Windows,你可以通过此功能升级到完整版 Windows。
(如果操作没有反应可能是当前版本不支持升级,或者正在升级)
注意:
此操作不可逆,一旦升级完成将无法回退到核心版 Windows!
确定要执行升级操作吗?
182 |
183 |
184 | 这个应用现已支持通过控制台参数启动!
-a --auto 自动激活。
-h --hide 隐藏模式运行 (只能与 -auto 一起使用)。
-e --expact 实验性激活。
-l --log 输出日志到文件。
-? --help 显示此说明对话框。
185 |
186 |
187 | 祝贺!
Windows 已经成功转换。
188 |
189 |
190 | 祝贺!
Windows 已经成功激活。
191 |
192 |
193 | 我们发现了新版本的 云萌 Windows 10+ 数字权利激活工具。
请更新到最新版本来确保它可以正常工作。
194 |
195 |
196 | 我们发现了新版本的 云萌 Windows 10+ 数字权利激活工具。
由于您的版本太旧,所以您必须更新到最新版本来确保它可以正常工作。
197 |
198 |
199 | 激活 Windows 需要网络获取产品密钥 :)
200 |
201 |
202 | 无法卸载旧密钥 :(
203 |
204 |
205 | 无法安装密钥,可能没有选择或输入正确的版本 :(
206 |
207 |
208 | 无法获取版本代号 :(
209 |
210 |
211 | 无法安装密钥,可能没有选择或输入正确的版本 :(
212 |
213 |
214 | 执行超时,可能没有选择正确或输入的版本 :(
215 |
216 |
217 | 激活失败。 :(
可能因为:
1. 此版本/类型的 Windows 不支持数字权利(数字许可证)方式激活。
2. 无法连接到微软Windows激活服务器。
3. 其它未知问题。
你可以尝试稍等片刻或者稍后重试。
218 |
219 |
220 | 只找到用于此版本系统的长期离线KMS(批量激活)选项。
这表示您将不能在下次重装系统后自动激活。
不过无需担心,这不同于传统的KMS激活方式(离线状态下可以保持激活180天)
长期离线KMS(Offline-KMS)即使不联网也可以保持激活值2038年!
221 |
222 |
223 | 祝贺!
Windows 已经快要激活成功了。
不过似乎Windows无法连接到微软激活服务器,
当下次连接上服务器时系统将会自动激活。
224 |
225 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Ww][Ii][Nn]32/
27 | [Aa][Rr][Mm]/
28 | [Aa][Rr][Mm]64/
29 | bld/
30 | [Bb]in/
31 | [Oo]bj/
32 | [Ll]og/
33 | [Ll]ogs/
34 |
35 | # Visual Studio 2015/2017 cache/options directory
36 | .vs/
37 | # Uncomment if you have tasks that create the project's static files in wwwroot
38 | #wwwroot/
39 |
40 | # Visual Studio 2017 auto generated files
41 | Generated\ Files/
42 |
43 | # MSTest test Results
44 | [Tt]est[Rr]esult*/
45 | [Bb]uild[Ll]og.*
46 |
47 | # NUnit
48 | *.VisualState.xml
49 | TestResult.xml
50 | nunit-*.xml
51 |
52 | # Build Results of an ATL Project
53 | [Dd]ebugPS/
54 | [Rr]eleasePS/
55 | dlldata.c
56 |
57 | # Benchmark Results
58 | BenchmarkDotNet.Artifacts/
59 |
60 | # .NET Core
61 | project.lock.json
62 | project.fragment.lock.json
63 | artifacts/
64 |
65 | # ASP.NET Scaffolding
66 | ScaffoldingReadMe.txt
67 |
68 | # StyleCop
69 | StyleCopReport.xml
70 |
71 | # Files built by Visual Studio
72 | *_i.c
73 | *_p.c
74 | *_h.h
75 | *.ilk
76 | *.meta
77 | *.obj
78 | *.iobj
79 | *.pch
80 | *.pdb
81 | *.ipdb
82 | *.pgc
83 | *.pgd
84 | *.rsp
85 | *.sbr
86 | *.tlb
87 | *.tli
88 | *.tlh
89 | *.tmp
90 | *.tmp_proj
91 | *_wpftmp.csproj
92 | *.log
93 | *.tlog
94 | *.vspscc
95 | *.vssscc
96 | .builds
97 | *.pidb
98 | *.svclog
99 | *.scc
100 |
101 | # Chutzpah Test files
102 | _Chutzpah*
103 |
104 | # Visual C++ cache files
105 | ipch/
106 | *.aps
107 | *.ncb
108 | *.opendb
109 | *.opensdf
110 | *.sdf
111 | *.cachefile
112 | *.VC.db
113 | *.VC.VC.opendb
114 |
115 | # Visual Studio profiler
116 | *.psess
117 | *.vsp
118 | *.vspx
119 | *.sap
120 |
121 | # Visual Studio Trace Files
122 | *.e2e
123 |
124 | # TFS 2012 Local Workspace
125 | $tf/
126 |
127 | # Guidance Automation Toolkit
128 | *.gpState
129 |
130 | # ReSharper is a .NET coding add-in
131 | _ReSharper*/
132 | *.[Rr]e[Ss]harper
133 | *.DotSettings.user
134 |
135 | # TeamCity is a build add-in
136 | _TeamCity*
137 |
138 | # DotCover is a Code Coverage Tool
139 | *.dotCover
140 |
141 | # AxoCover is a Code Coverage Tool
142 | .axoCover/*
143 | !.axoCover/settings.json
144 |
145 | # Coverlet is a free, cross platform Code Coverage Tool
146 | coverage*.json
147 | coverage*.xml
148 | coverage*.info
149 |
150 | # Visual Studio code coverage results
151 | *.coverage
152 | *.coveragexml
153 |
154 | # NCrunch
155 | _NCrunch_*
156 | .*crunch*.local.xml
157 | nCrunchTemp_*
158 |
159 | # MightyMoose
160 | *.mm.*
161 | AutoTest.Net/
162 |
163 | # Web workbench (sass)
164 | .sass-cache/
165 |
166 | # Installshield output folder
167 | [Ee]xpress/
168 |
169 | # DocProject is a documentation generator add-in
170 | DocProject/buildhelp/
171 | DocProject/Help/*.HxT
172 | DocProject/Help/*.HxC
173 | DocProject/Help/*.hhc
174 | DocProject/Help/*.hhk
175 | DocProject/Help/*.hhp
176 | DocProject/Help/Html2
177 | DocProject/Help/html
178 |
179 | # Click-Once directory
180 | publish/
181 |
182 | # Publish Web Output
183 | *.[Pp]ublish.xml
184 | *.azurePubxml
185 | # Note: Comment the next line if you want to checkin your web deploy settings,
186 | # but database connection strings (with potential passwords) will be unencrypted
187 | *.pubxml
188 | *.publishproj
189 |
190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
191 | # checkin your Azure Web App publish settings, but sensitive information contained
192 | # in these scripts will be unencrypted
193 | PublishScripts/
194 |
195 | # NuGet Packages
196 | *.nupkg
197 | # NuGet Symbol Packages
198 | *.snupkg
199 | # The packages folder can be ignored because of Package Restore
200 | **/[Pp]ackages/*
201 | # except build/, which is used as an MSBuild target.
202 | !**/[Pp]ackages/build/
203 | # Uncomment if necessary however generally it will be regenerated when needed
204 | #!**/[Pp]ackages/repositories.config
205 | # NuGet v3's project.json files produces more ignorable files
206 | *.nuget.props
207 | *.nuget.targets
208 |
209 | # Microsoft Azure Build Output
210 | csx/
211 | *.build.csdef
212 |
213 | # Microsoft Azure Emulator
214 | ecf/
215 | rcf/
216 |
217 | # Windows Store app package directories and files
218 | AppPackages/
219 | BundleArtifacts/
220 | Package.StoreAssociation.xml
221 | _pkginfo.txt
222 | *.appx
223 | *.appxbundle
224 | *.appxupload
225 |
226 | # Visual Studio cache files
227 | # files ending in .cache can be ignored
228 | *.[Cc]ache
229 | # but keep track of directories ending in .cache
230 | !?*.[Cc]ache/
231 |
232 | # Others
233 | ClientBin/
234 | ~$*
235 | *~
236 | *.dbmdl
237 | *.dbproj.schemaview
238 | *.jfm
239 | *.pfx
240 | *.publishsettings
241 | orleans.codegen.cs
242 |
243 | # Including strong name files can present a security risk
244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
245 | #*.snk
246 |
247 | # Since there are multiple workflows, uncomment next line to ignore bower_components
248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
249 | #bower_components/
250 |
251 | # RIA/Silverlight projects
252 | Generated_Code/
253 |
254 | # Backup & report files from converting an old project file
255 | # to a newer Visual Studio version. Backup files are not needed,
256 | # because we have git ;-)
257 | _UpgradeReport_Files/
258 | Backup*/
259 | UpgradeLog*.XML
260 | UpgradeLog*.htm
261 | ServiceFabricBackup/
262 | *.rptproj.bak
263 |
264 | # SQL Server files
265 | *.mdf
266 | *.ldf
267 | *.ndf
268 |
269 | # Business Intelligence projects
270 | *.rdl.data
271 | *.bim.layout
272 | *.bim_*.settings
273 | *.rptproj.rsuser
274 | *- [Bb]ackup.rdl
275 | *- [Bb]ackup ([0-9]).rdl
276 | *- [Bb]ackup ([0-9][0-9]).rdl
277 |
278 | # Microsoft Fakes
279 | FakesAssemblies/
280 |
281 | # GhostDoc plugin setting file
282 | *.GhostDoc.xml
283 |
284 | # Node.js Tools for Visual Studio
285 | .ntvs_analysis.dat
286 | node_modules/
287 |
288 | # Visual Studio 6 build log
289 | *.plg
290 |
291 | # Visual Studio 6 workspace options file
292 | *.opt
293 |
294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
295 | *.vbw
296 |
297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.)
298 | *.vbp
299 |
300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project)
301 | *.dsw
302 | *.dsp
303 |
304 | # Visual Studio 6 technical files
305 | *.ncb
306 | *.aps
307 |
308 | # Visual Studio LightSwitch build output
309 | **/*.HTMLClient/GeneratedArtifacts
310 | **/*.DesktopClient/GeneratedArtifacts
311 | **/*.DesktopClient/ModelManifest.xml
312 | **/*.Server/GeneratedArtifacts
313 | **/*.Server/ModelManifest.xml
314 | _Pvt_Extensions
315 |
316 | # Paket dependency manager
317 | .paket/paket.exe
318 | paket-files/
319 |
320 | # FAKE - F# Make
321 | .fake/
322 |
323 | # CodeRush personal settings
324 | .cr/personal
325 |
326 | # Python Tools for Visual Studio (PTVS)
327 | __pycache__/
328 | *.pyc
329 |
330 | # Cake - Uncomment if you are using it
331 | # tools/**
332 | # !tools/packages.config
333 |
334 | # Tabs Studio
335 | *.tss
336 |
337 | # Telerik's JustMock configuration file
338 | *.jmconfig
339 |
340 | # BizTalk build output
341 | *.btp.cs
342 | *.btm.cs
343 | *.odx.cs
344 | *.xsd.cs
345 |
346 | # OpenCover UI analysis results
347 | OpenCover/
348 |
349 | # Azure Stream Analytics local run output
350 | ASALocalRun/
351 |
352 | # MSBuild Binary and Structured Log
353 | *.binlog
354 |
355 | # NVidia Nsight GPU debugger configuration file
356 | *.nvuser
357 |
358 | # MFractors (Xamarin productivity tool) working folder
359 | .mfractor/
360 |
361 | # Local History for Visual Studio
362 | .localhistory/
363 |
364 | # Visual Studio History (VSHistory) files
365 | .vshistory/
366 |
367 | # BeatPulse healthcheck temp database
368 | healthchecksdb
369 |
370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
371 | MigrationBackup/
372 |
373 | # Ionide (cross platform F# VS Code tools) working folder
374 | .ionide/
375 |
376 | # Fody - auto-generated XML schema
377 | FodyWeavers.xsd
378 |
379 | # VS Code files for those working on multiple tools
380 | .vscode/*
381 | !.vscode/settings.json
382 | !.vscode/tasks.json
383 | !.vscode/launch.json
384 | !.vscode/extensions.json
385 | *.code-workspace
386 |
387 | # Local History for Visual Studio Code
388 | .history/
389 |
390 | # Windows Installer files from build outputs
391 | *.cab
392 | *.msi
393 | *.msix
394 | *.msm
395 | *.msp
396 |
397 | # JetBrains Rider
398 | *.sln.iml
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Lang/ja.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 |
10 | Yu Gothic UI
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 | 雲萌 10+ デジタルライセンス認証アプリ
38 |
39 |
40 | CMWTAT Digital Edition V2
41 |
42 |
43 | 新しいバージョンがあります!
44 |
45 |
46 |
47 | Upgrade to full version of Windows
48 |
49 |
50 | バージョン
51 |
52 |
53 | ラストバージョン
54 |
55 |
56 | オートモード
57 |
58 |
59 | マニュアルモード
60 |
61 |
62 | 認証
63 |
64 |
65 | エディション変換 (キーをインストールするが、認証しません)
66 |
67 |
68 |
69 | Upgrade to full version of Windows
70 |
71 |
72 | テストテキスト
73 |
74 |
75 | ローディング
76 |
77 |
78 | 認証中
79 |
80 |
81 | コンプリート
82 |
83 |
84 | 雲萌 Windows 10+ 認証アプリ V2
85 |
86 |
87 | 実行中。
88 |
89 |
90 | 実験性
91 |
92 |
93 | 注意
94 |
95 |
96 | システムエディション
97 |
98 |
99 | あなたのシステムエディションが判別できません、対応していないかもしれません。
100 |
101 |
102 | このシステムエディションに実験性オプションしか取れません、認証成功の可能性は極めて低い。
103 |
104 |
105 | あなたのシステムエディションは対応していないかもしれません。アプリは終了する。試して、--expactまたは-eを追加することでアプリ起動してください。
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 | Upgrading
164 |
165 |
166 | コンプリート
167 |
168 |
169 | エラー
170 |
171 |
172 | コード:
173 |
174 |
175 | システムメッセージ:
176 |
177 |
178 |
182 |
183 |
184 |
185 | You are currently using the core version of Windows, you can use this feature to upgrade to the full version of Windows.
(If the operation does not respond it may be that the current version does not support the upgrade or is in the process of upgrading)
Note:
This operation is not reversible and once the upgrade is complete you will not be able to roll back to the core version of Windows!
Are you sure you want to perform an upgrade?
186 |
187 |
188 | このアプリは起動時にコンソール引数を使用できるようになりました!
-a --auto 自動認証。
-h --hide 非表示モードで実行 (-autoと一緒に使用するだけ可能)。
-e --expact 実験性認証。
-l --log ログをファイルに出力。
-? --help この説明ダイアログボックスを表示する。
189 |
190 |
191 | おめでとう!
Windows エディション変換成功。
192 |
193 |
194 | おめでとう!
Windows 認証成功。
195 |
196 |
197 | 雲萌 Windows 10+ デジタルライセンス認証アプリの新しいバージョン発見しました。
最新バージョンにアップデートしてください。
198 |
199 |
200 | 雲萌 Windows 10+ デジタルライセンス認証アプリの新しいバージョン発見しました。
アプリが古すぎるため、最新バージョンにアップデートしてから利用ください。
201 |
202 |
203 | Windows ライセンス認証にはインターネットを通じてキーを取得する必要があります :)
204 |
205 |
206 | 以前のキーをアンインストールできません :(
207 |
208 |
209 | キーをインストールできません、選択または入力されたエディションが間違っているかもしれません :(
210 |
211 |
212 | エディションコードを取得できません :(
213 |
214 |
215 | キーをインストールできません、選択または入力されたエディションが間違っているかもしれません :(
216 |
217 |
218 | タイムアウト,選択または入力されたエディションが間違っているかもしれません :(
219 |
220 |
221 | 認証失敗。 :(
多分:
1. このエディション/バージョンの Windows はデジタルライセンス認証が適用しない。
2. マイクロソフトの認証サーバーに接続できません。
3. その他。
暫くお待ちくださいまたはあとでもう一度やり直してください。
222 |
223 |
224 | このシステムエディションに適用されたのは長期オフラインKMS(LTOK)オプションしか見つかりません。これによってシステムを再インストールした時自動的にライセンス認証しませんが、心配する必要はありません。この方法(LTOK)でライセンス認証後、インターネット接続なしでも2038年まで稼働を継続できます!
225 |
226 |
227 | おめでとうございます!
Windowsはライセンス認証の準備が出来ています。
でも、マイクロソフトのライセンス認証サーバーに接続できませんみたいです。
システムは認証サーバーに接続出来る次第に自動的にライセンス認証します。
228 |
229 |
230 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Lang/fr.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 |
10 | Roboto
11 |
12 |
13 |
14 |
15 |
16 | Ok
17 |
18 |
19 | Annuler
20 |
21 |
22 | Refuser
23 |
24 |
25 | Remerciez les développeurs et offrez leurs un café
26 |
27 |
28 | Sortir
29 |
30 |
31 | Mettre à jour maintenant
32 |
33 |
34 | Ignorer
35 |
36 |
37 | CMWTAT Edition numérique
38 |
39 |
40 | CMWTAT Edition numérique V2
41 |
42 |
43 | Une nouvelle version disponible !
44 |
45 |
46 | Version actuelle
47 |
48 |
49 | Dernière version
50 |
51 |
52 | Mode automatique
53 |
54 |
55 | Mode manuel
56 |
57 |
58 | Activer
59 |
60 |
61 | Convertir la versions (Installer la clé sans l'activer)
62 |
63 |
64 | Texte de test
65 |
66 |
67 | Chargement
68 |
69 |
70 | Activation
71 |
72 |
73 | Terminé
74 |
75 |
76 | CloudMoe Windows 10+ Activation Toolkit V2
77 |
78 |
79 | En cours d'exécution.
80 |
81 |
82 | Expérimental
83 |
84 |
85 | Attention
86 |
87 |
88 | Version du système
89 |
90 |
91 | La version de votre système d'exploitation n'est pas identifiable, il se peut qu'il ne soit pas supporté.
92 |
93 |
94 | Seules des options expérimentales peuvent être utilisées avec cette édition du système d'exploitation. Il y a peu d'espoir de succès d'activation.
95 |
96 |
97 | La version de votre système peut ne pas être supportée, le programme se terminera automatiquement. Vous pouvez essayer d'ajouter --expact ou -e au démarrage.
98 |
99 |
100 | La version de votre système peut ne pas être prise en charge, le programme va se fermer.
101 |
102 |
103 | Impossible de se connecter au serveur, Veuillez vérifier le réseau et réessayer plus tard, le programme va se fermer.
104 |
105 |
106 | Impossible de se connecter au serveur, Veuillez vérifier le réseau et réessayer plus tard, le programme va se fermer.
107 |
108 |
109 | Conversion
110 |
111 |
112 | Activation
113 |
114 |
115 | Obtention de la clé par Internet
116 |
117 |
118 | Obtention de la clé par Internet
119 |
120 |
121 | Suppression de l'ancienne clé
122 |
123 |
124 | Suppression de l'ancienne clé
125 |
126 |
127 | Suppression de l'ancienne clé (Experimental)
128 |
129 |
130 | Installation de la clé
131 |
132 |
133 | Installation de la clé
134 |
135 |
136 | Obtenir le code version (Experimental)
137 |
138 |
139 | Préparation à l'étape suivante (Experimental)
140 |
141 |
142 | Écriture d'une ancienne version de Windows
143 |
144 |
145 | Obtention des autorisations gratuite de mise à niveau
146 |
147 |
148 | Nettoyage des changements
149 |
150 |
151 | Obtention d'une licence numérique
152 |
153 |
154 | Terminé
155 |
156 |
157 | Erreur
158 |
159 |
160 | Code:
161 |
162 |
163 | Le système à retourné:
164 |
165 |
166 |
170 |
173 |
174 |
175 | This application now supports the use of console args to startup!
-a --auto Auto activate.
-h --hide Run with hide mode (Only be worked with -auto).
-e --expact Experimental activation.
-l --log Output log to file.
-? --help Show this help Dialog.
176 |
177 |
178 | Congratulation!
Windows has been successful converted.
179 |
180 |
181 | Congratulation!
Windows has been successful activated.
182 |
183 |
184 | We found a new version for CloudMoe Windows 10+ Activation Toolkit Digital Edition.
Please update to the latest version to make sure it works.
185 |
186 |
187 | We found a new version for CloudMoe Windows 10+ Activation Toolkit Digital Edition.
And because your version is too old, so you MUST update to the latest version to make sure it works.
188 |
189 |
190 | Activate Windows requires a network to gets the product key :)
191 |
192 |
193 | Cannot to uninstall old key. :(
194 |
195 |
196 | Cannot to install key, may be you choose or enter a incorrect version. :(
197 |
198 |
199 | Cannot to get edition code. :(
200 |
201 |
202 | Cannot to install key, may be you choose or enter a incorrect version. :(
203 |
204 |
205 | Time out, may be you choose or enter a incorrect version. :(
206 |
207 |
208 | Activation Failed. :(
Maybe:
1.This edition/version of Windows does not support digital license activation.
2. Unable to connect to Microsoft Windows Activation Server.
3. Other unexpected problems.
You can try to wait a minute or try again later.
209 |
210 |
211 | Only found Long-Term Offline KMS (LTOK) options that can be used with this operating system edition.
This means that it will not be activate automatically after you reinstalled the system.
But don't worry, this is different from the legacy KMS activation method (it can keep activating for 180 days in offline environment).
LTOK (The prefix is Offline-KMS) can keep activating for up to 2038 even it is without networking!
212 |
213 |
214 | Congratulation!
Windows is ready to activate.
However, it seems that Windows cannot connect to the Microsoft Activation Server.
Your system will be activated automatically the next time the server is connected.
215 |
216 |
217 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Lang/en.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 |
10 | Roboto
11 |
12 |
13 |
14 |
15 |
16 | OK
17 |
18 |
19 | Cancel
20 |
21 |
22 | Refuse
23 |
24 |
25 | Thanks developer and donate a dinner
26 |
27 |
28 | Exit
29 |
30 |
31 | Update Now
32 |
33 |
34 | Ignore
35 |
36 |
37 | CMWTAT Digital Edition
38 |
39 |
40 | CMWTAT Digital Edition V2
41 |
42 |
43 | A new version available!
44 |
45 |
46 | Upgrade to full version of Windows
47 |
48 |
49 | Current Version
50 |
51 |
52 | Latest Version
53 |
54 |
55 | Auto Mode
56 |
57 |
58 | Manual Mode
59 |
60 |
61 | Activate
62 |
63 |
64 | Convert versions (Install Key without Activate)
65 |
66 |
67 | Upgrade to full version of Windows
68 |
69 |
70 | Test Text
71 |
72 |
73 | Loading
74 |
75 |
76 | Activating
77 |
78 |
79 | Complete
80 |
81 |
82 | CloudMoe Windows 10+ Activation Toolkit V2
83 |
84 |
85 | Running.
86 |
87 |
88 | Experimental
89 |
90 |
91 | Attention
92 |
93 |
94 | System edition
95 |
96 |
97 | Unable to correctly identify your operating system edition in support list, may be not be supported.
98 |
99 |
100 | Only found experimental options that can be used with this operating system edition, little hope of activation success.
101 |
102 |
103 | Your system edition may not be supported, program will exit. you can try add --expact or -e to startup.
104 |
105 |
106 | Your system edition may not be supported, program will exit.
107 |
108 |
109 | Unable to connect to server, Please check the network and try to try again later, program will exit.
110 |
111 |
112 | Unable to connect to server, Please check the network and try to try again later, program will exit.
113 |
114 |
115 | Converting
116 |
117 |
118 | Activating
119 |
120 |
121 | Getting Key via Internet
122 |
123 |
124 | Getting Key via Internet
125 |
126 |
127 | Uninstalling old Key
128 |
129 |
130 | Uninstalling old Key
131 |
132 |
133 | Uninstalling old Key (Experimental)
134 |
135 |
136 | Installing Key
137 |
138 |
139 | Installing Key
140 |
141 |
142 | Getting edition code (Experimental)
143 |
144 |
145 | Prepare for the next step (Experimental)
146 |
147 |
148 | Writing feature of old Windows version
149 |
150 |
151 | Getting free upgrade permissions
152 |
153 |
154 | Cleaning changes
155 |
156 |
157 | Getting digital license
158 |
159 |
160 | Upgrading
161 |
162 |
163 | Complete
164 |
165 |
166 | Error
167 |
168 |
169 | Code:
170 |
171 |
172 | System return:
173 |
174 |
175 |
179 |
180 |
181 | You are currently using the core version of Windows, you can use this feature to upgrade to the full version of Windows.
(If the operation does not respond it may be that the current version does not support the upgrade or is in the process of upgrading)
Note:
This operation is not reversible and once the upgrade is complete you will not be able to roll back to the core version of Windows!
Are you sure you want to perform an upgrade?
182 |
183 |
184 | This application now supports the use of console args to startup!
-a --auto Auto activate.
-h --hide Run with hide mode (Only be worked with -auto).
-e --expact Experimental activation.
-l --log Output log to file.
-? --help Show this help Dialog.
185 |
186 |
187 | Congratulation!
Windows has been successful converted.
188 |
189 |
190 | Congratulation!
Windows has been successful activated.
191 |
192 |
193 | We found a new version for CloudMoe Windows 10+ Activation Toolkit Digital Edition.
Please update to the latest version to make sure it works.
194 |
195 |
196 | We found a new version for CloudMoe Windows 10+ Activation Toolkit Digital Edition.
And because your version is too old, so you MUST update to the latest version to make sure it works.
197 |
198 |
199 | Activate Windows requires a network to gets the product key :)
200 |
201 |
202 | Cannot to uninstall old key. :(
203 |
204 |
205 | Cannot to install key, may be you choose or enter a incorrect version. :(
206 |
207 |
208 | Cannot to get edition code. :(
209 |
210 |
211 | Cannot to install key, may be you choose or enter a incorrect version. :(
212 |
213 |
214 | Time out, may be you choose or enter a incorrect version. :(
215 |
216 |
217 | Activation Failed. :(
Maybe:
1.This edition/version of Windows does not support digital license activation.
2. Unable to connect to Microsoft Windows Activation Server.
3. Other unexpected problems.
You can try to wait a minute or try again later.
218 |
219 |
220 | Only found Long-Term Offline KMS (LTOK) options that can be used with this operating system edition.
This means that it will not be activate automatically after you reinstalled the system.
But don't worry, this is different from the legacy KMS activation method (it can keep activating for 180 days in offline environment).
LTOK (The prefix is Offline-KMS) can keep activating for up to 2038 even it is without networking!
221 |
222 |
223 | Congratulation!
Windows is ready to activate.
However, it seems that Windows cannot connect to the Microsoft Activation Server.
Your system will be activated automatically the next time the server is connected.
224 |
225 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/Lang/ru.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 |
10 | Roboto
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 | CMWTAT Digital Edition
38 |
39 |
40 | CMWTAT Digital Edition V2
41 |
42 |
43 | Доступна новая версия!
44 |
45 |
46 | Перейти на полную версию Windows
47 |
48 |
49 | Текущая версия
50 |
51 |
52 | Последняя версия
53 |
54 |
55 | Авто
56 |
57 |
58 | Вручную
59 |
60 |
61 | Активировать
62 |
63 |
64 | Конвертировать версии (установить ключ без активации)
65 |
66 |
67 | Перейти на полную версию Windows
68 |
69 |
70 | тест текст
71 |
72 |
73 | Загрузка
74 |
75 |
76 | Активация
77 |
78 |
79 | Готово
80 |
81 |
82 | CloudMoe Windows 10+ Activation Toolkit V2
83 |
84 |
85 | Работает
86 |
87 |
88 | Экспериментальный
89 |
90 |
91 | Внимание
92 |
93 |
94 | Версия системы
95 |
96 |
97 | Версия вашей системы не найдена. Возможно, она не поддерживается.
98 |
99 |
100 | Найдены только экспериментальные варианты для вашей системы. Скорее всего, активация завершится неудачей.
101 |
102 |
103 | Версия вашей системы может не поддерживаться, программа завершает свою работу. Попробуйте добавить --expact или -e в качестве аргумента для запуска.
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 | Сообщение системы:
173 |
174 |
175 |
179 |
180 |
181 | Вы используете базовую версию Windows, Вы можете использовать эту функцию, чтобы перейти на полную версию.
(Если программа не отвечает, Ваша версия системы может не поддерживать переход на полную версию или уже в процессе перехода)
Note:
Данное действие необратимо. После перехода на полную версию Вы не сможете перейти обратно!
Вы хотите продолжить?
182 |
183 |
184 | Эта программа теперь поддерживает аргументы командной строки при запуске!
-a --auto Автоматическая активация.
-h --hide Запустить в скрытом режиме (Работает только с --auto).
-e --expact Экспериментальная активация.
-l --log Вывод логов в файл.
-? --help Показать эту справку.
185 |
186 |
187 | Поздравляю!
Windows была успешно конвертирована.
188 |
189 |
190 | Поздравляю!
Windows была успешно активирована.
191 |
192 |
193 | Была найдена новая версия CloudMoe Windows 10+ Activation Toolkit Digital Edition.
Пожалуйста, обновите программу для полной поддержки.
194 |
195 |
196 | Было найдено обязательное обновление CloudMoe Windows 10+ Activation Toolkit Digital Edition.
Программа не будет работать без этого обновления.
197 |
198 |
199 | При активации Windows требуется подключение к сети (для получения ключа) :)
200 |
201 |
202 | Не удалось удалить старый ключ. :(
203 |
204 |
205 | Не удалось установить ключ. Может, вы выбрали или ввели неправильную версию системы?
206 |
207 |
208 | Не удалось получить код версии. :(
209 |
210 |
211 | Не удалось установить ключ. Может, вы выбрали или ввели неправильную версию системы?
212 |
213 |
214 | Превышено время. Может, вы выбрали или ввели неправильную версию системы?
215 |
216 |
217 | Активация не выполнена. :(
Возможно:
1.Эта версия Windows не поддерживает активацию цифровым ключом.
2. Невозможно подключиться к серверу активации Microsoft Activation Server.
3. Другие неизвестные ошибки.
Вы можете попробовать еще раз позже.
218 |
219 |
220 | Найдены только Long-Term Offline KMS (LTOK) варианты, которые можно использовать с текущей версией системы.
Это значит, что при переустановке системы, Вам надо будет активировать ее заново.
Не волнуйтесь, это не вариант активации legacy KMS, который может продолжать активироваться в течение 180 дней в оффлайн режиме.
LTOK (Префикс Offline-KMS) может продолжать активироваться до 2038 года даже без подключения к сети!
221 |
222 |
223 | Поздравляю!
Windows готова к активации.
Но похоже, что Windows не может подключиться к серверу активации Microsoft Activation Server.
Ваша система будет активирована автоматически при следующем подключении к Microsoft Activation Server.
224 |
225 |
226 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/CMWTAT_DIGITAL.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 10.0.10240.0
7 | Debug
8 | AnyCPU
9 | {961DE925-B82C-4515-8FBD-6805E36D1212}
10 | WinExe
11 | CMWTAT_DIGITAL
12 | CMWTAT_DIGITAL
13 | v4.5.2
14 | 512
15 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
16 | 4
17 |
18 | publish\
19 | true
20 | Disk
21 | false
22 | Foreground
23 | 7
24 | Days
25 | false
26 | false
27 | true
28 | 0
29 | 1.0.0.%2a
30 | false
31 | false
32 | true
33 |
34 |
35 |
36 |
37 | AnyCPU
38 | true
39 | full
40 | false
41 | bin\Debug\
42 | DEBUG;TRACE
43 | prompt
44 | 4
45 | false
46 |
47 |
48 | AnyCPU
49 | pdbonly
50 | true
51 | bin\Release\
52 | TRACE
53 | prompt
54 | 4
55 | false
56 |
57 |
58 | app.manifest
59 |
60 |
61 | CMWTAT.ico
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | ..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll
70 |
71 |
72 | ..\packages\MaterialDesignColors.2.0.6\lib\net452\MaterialDesignColors.dll
73 |
74 |
75 | ..\packages\MaterialDesignThemes.4.5.0\lib\net452\MaterialDesignThemes.Wpf.dll
76 |
77 |
78 | ..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 | ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll
89 |
90 |
91 |
92 |
93 |
94 |
95 | 4.0
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 | MSBuild:Compile
109 | Designer
110 |
111 |
112 | Designer
113 | MSBuild:Compile
114 |
115 |
116 | MSBuild:Compile
117 | Designer
118 |
119 |
120 | MSBuild:Compile
121 | Designer
122 |
123 |
124 | MSBuild:Compile
125 | Designer
126 |
127 |
128 | Designer
129 | MSBuild:Compile
130 |
131 |
132 | MSBuild:Compile
133 | Designer
134 |
135 |
136 | App.xaml
137 | Code
138 |
139 |
140 |
141 |
142 |
143 | MainWindow.xaml
144 | Code
145 |
146 |
147 |
148 |
149 |
150 | Code
151 |
152 |
153 | True
154 | True
155 | Resources.resx
156 |
157 |
158 | True
159 | Settings.settings
160 | True
161 |
162 |
163 | ResXFileCodeGenerator
164 | Resources.Designer.cs
165 | Designer
166 |
167 |
168 |
169 | Designer
170 |
171 |
172 |
173 | SettingsSingleFileGenerator
174 | Settings.Designer.cs
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 | False
183 | .NET Framework 3.5 SP1
184 | false
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 | 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 |
3 | Copyright (c) 2018 TGSAN
4 |
5 | Version 2, June 1991
6 |
7 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
8 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
9 | Everyone is permitted to copy and distribute verbatim copies
10 | of this license document, but changing it is not allowed.
11 |
12 | Preamble
13 |
14 | The licenses for most software are designed to take away your
15 | freedom to share and change it. By contrast, the GNU General Public
16 | License is intended to guarantee your freedom to share and change free
17 | software--to make sure the software is free for all its users. This
18 | General Public License applies to most of the Free Software
19 | Foundation's software and to any other program whose authors commit to
20 | using it. (Some other Free Software Foundation software is covered by
21 | the GNU Lesser General Public License instead.) You can apply it to
22 | your programs, too.
23 |
24 | When we speak of free software, we are referring to freedom, not
25 | price. Our General Public Licenses are designed to make sure that you
26 | have the freedom to distribute copies of free software (and charge for
27 | this service if you wish), that you receive source code or can get it
28 | if you want it, that you can change the software or use pieces of it
29 | in new free programs; and that you know you can do these things.
30 |
31 | To protect your rights, we need to make restrictions that forbid
32 | anyone to deny you these rights or to ask you to surrender the rights.
33 | These restrictions translate to certain responsibilities for you if you
34 | distribute copies of the software, or if you modify it.
35 |
36 | For example, if you distribute copies of such a program, whether
37 | gratis or for a fee, you must give the recipients all the rights that
38 | you have. You must make sure that they, too, receive or can get the
39 | source code. And you must show them these terms so they know their
40 | rights.
41 |
42 | We protect your rights with two steps: (1) copyright the software, and
43 | (2) offer you this license which gives you legal permission to copy,
44 | distribute and/or modify the software.
45 |
46 | Also, for each author's protection and ours, we want to make certain
47 | that everyone understands that there is no warranty for this free
48 | software. If the software is modified by someone else and passed on, we
49 | want its recipients to know that what they have is not the original, so
50 | that any problems introduced by others will not reflect on the original
51 | authors' reputations.
52 |
53 | Finally, any free program is threatened constantly by software
54 | patents. We wish to avoid the danger that redistributors of a free
55 | program will individually obtain patent licenses, in effect making the
56 | program proprietary. To prevent this, we have made it clear that any
57 | patent must be licensed for everyone's free use or not licensed at all.
58 |
59 | The precise terms and conditions for copying, distribution and
60 | modification follow.
61 |
62 | GNU GENERAL PUBLIC LICENSE
63 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
64 |
65 | 0. This License applies to any program or other work which contains
66 | a notice placed by the copyright holder saying it may be distributed
67 | under the terms of this General Public License. The "Program", below,
68 | refers to any such program or work, and a "work based on the Program"
69 | means either the Program or any derivative work under copyright law:
70 | that is to say, a work containing the Program or a portion of it,
71 | either verbatim or with modifications and/or translated into another
72 | language. (Hereinafter, translation is included without limitation in
73 | the term "modification".) Each licensee is addressed as "you".
74 |
75 | Activities other than copying, distribution and modification are not
76 | covered by this License; they are outside its scope. The act of
77 | running the Program is not restricted, and the output from the Program
78 | is covered only if its contents constitute a work based on the
79 | Program (independent of having been made by running the Program).
80 | Whether that is true depends on what the Program does.
81 |
82 | 1. You may copy and distribute verbatim copies of the Program's
83 | source code as you receive it, in any medium, provided that you
84 | conspicuously and appropriately publish on each copy an appropriate
85 | copyright notice and disclaimer of warranty; keep intact all the
86 | notices that refer to this License and to the absence of any warranty;
87 | and give any other recipients of the Program a copy of this License
88 | along with the Program.
89 |
90 | You may charge a fee for the physical act of transferring a copy, and
91 | you may at your option offer warranty protection in exchange for a fee.
92 |
93 | 2. You may modify your copy or copies of the Program or any portion
94 | of it, thus forming a work based on the Program, and copy and
95 | distribute such modifications or work under the terms of Section 1
96 | above, provided that you also meet all of these conditions:
97 |
98 | a) You must cause the modified files to carry prominent notices
99 | stating that you changed the files and the date of any change.
100 |
101 | b) You must cause any work that you distribute or publish, that in
102 | whole or in part contains or is derived from the Program or any
103 | part thereof, to be licensed as a whole at no charge to all third
104 | parties under the terms of this License.
105 |
106 | c) If the modified program normally reads commands interactively
107 | when run, you must cause it, when started running for such
108 | interactive use in the most ordinary way, to print or display an
109 | announcement including an appropriate copyright notice and a
110 | notice that there is no warranty (or else, saying that you provide
111 | a warranty) and that users may redistribute the program under
112 | these conditions, and telling the user how to view a copy of this
113 | License. (Exception: if the Program itself is interactive but
114 | does not normally print such an announcement, your work based on
115 | the Program is not required to print an announcement.)
116 |
117 | These requirements apply to the modified work as a whole. If
118 | identifiable sections of that work are not derived from the Program,
119 | and can be reasonably considered independent and separate works in
120 | themselves, then this License, and its terms, do not apply to those
121 | sections when you distribute them as separate works. But when you
122 | distribute the same sections as part of a whole which is a work based
123 | on the Program, the distribution of the whole must be on the terms of
124 | this License, whose permissions for other licensees extend to the
125 | entire whole, and thus to each and every part regardless of who wrote it.
126 |
127 | Thus, it is not the intent of this section to claim rights or contest
128 | your rights to work written entirely by you; rather, the intent is to
129 | exercise the right to control the distribution of derivative or
130 | collective works based on the Program.
131 |
132 | In addition, mere aggregation of another work not based on the Program
133 | with the Program (or with a work based on the Program) on a volume of
134 | a storage or distribution medium does not bring the other work under
135 | the scope of this License.
136 |
137 | 3. You may copy and distribute the Program (or a work based on it,
138 | under Section 2) in object code or executable form under the terms of
139 | Sections 1 and 2 above provided that you also do one of the following:
140 |
141 | a) Accompany it with the complete corresponding machine-readable
142 | source code, which must be distributed under the terms of Sections
143 | 1 and 2 above on a medium customarily used for software interchange; or,
144 |
145 | b) Accompany it with a written offer, valid for at least three
146 | years, to give any third party, for a charge no more than your
147 | cost of physically performing source distribution, a complete
148 | machine-readable copy of the corresponding source code, to be
149 | distributed under the terms of Sections 1 and 2 above on a medium
150 | customarily used for software interchange; or,
151 |
152 | c) Accompany it with the information you received as to the offer
153 | to distribute corresponding source code. (This alternative is
154 | allowed only for noncommercial distribution and only if you
155 | received the program in object code or executable form with such
156 | an offer, in accord with Subsection b above.)
157 |
158 | The source code for a work means the preferred form of the work for
159 | making modifications to it. For an executable work, complete source
160 | code means all the source code for all modules it contains, plus any
161 | associated interface definition files, plus the scripts used to
162 | control compilation and installation of the executable. However, as a
163 | special exception, the source code distributed need not include
164 | anything that is normally distributed (in either source or binary
165 | form) with the major components (compiler, kernel, and so on) of the
166 | operating system on which the executable runs, unless that component
167 | itself accompanies the executable.
168 |
169 | If distribution of executable or object code is made by offering
170 | access to copy from a designated place, then offering equivalent
171 | access to copy the source code from the same place counts as
172 | distribution of the source code, even though third parties are not
173 | compelled to copy the source along with the object code.
174 |
175 | 4. You may not copy, modify, sublicense, or distribute the Program
176 | except as expressly provided under this License. Any attempt
177 | otherwise to copy, modify, sublicense or distribute the Program is
178 | void, and will automatically terminate your rights under this License.
179 | However, parties who have received copies, or rights, from you under
180 | this License will not have their licenses terminated so long as such
181 | parties remain in full compliance.
182 |
183 | 5. You are not required to accept this License, since you have not
184 | signed it. However, nothing else grants you permission to modify or
185 | distribute the Program or its derivative works. These actions are
186 | prohibited by law if you do not accept this License. Therefore, by
187 | modifying or distributing the Program (or any work based on the
188 | Program), you indicate your acceptance of this License to do so, and
189 | all its terms and conditions for copying, distributing or modifying
190 | the Program or works based on it.
191 |
192 | 6. Each time you redistribute the Program (or any work based on the
193 | Program), the recipient automatically receives a license from the
194 | original licensor to copy, distribute or modify the Program subject to
195 | these terms and conditions. You may not impose any further
196 | restrictions on the recipients' exercise of the rights granted herein.
197 | You are not responsible for enforcing compliance by third parties to
198 | this License.
199 |
200 | 7. If, as a consequence of a court judgment or allegation of patent
201 | infringement or for any other reason (not limited to patent issues),
202 | conditions are imposed on you (whether by court order, agreement or
203 | otherwise) that contradict the conditions of this License, they do not
204 | excuse you from the conditions of this License. If you cannot
205 | distribute so as to satisfy simultaneously your obligations under this
206 | License and any other pertinent obligations, then as a consequence you
207 | may not distribute the Program at all. For example, if a patent
208 | license would not permit royalty-free redistribution of the Program by
209 | all those who receive copies directly or indirectly through you, then
210 | the only way you could satisfy both it and this License would be to
211 | refrain entirely from distribution of the Program.
212 |
213 | If any portion of this section is held invalid or unenforceable under
214 | any particular circumstance, the balance of the section is intended to
215 | apply and the section as a whole is intended to apply in other
216 | circumstances.
217 |
218 | It is not the purpose of this section to induce you to infringe any
219 | patents or other property right claims or to contest validity of any
220 | such claims; this section has the sole purpose of protecting the
221 | integrity of the free software distribution system, which is
222 | implemented by public license practices. Many people have made
223 | generous contributions to the wide range of software distributed
224 | through that system in reliance on consistent application of that
225 | system; it is up to the author/donor to decide if he or she is willing
226 | to distribute software through any other system and a licensee cannot
227 | impose that choice.
228 |
229 | This section is intended to make thoroughly clear what is believed to
230 | be a consequence of the rest of this License.
231 |
232 | 8. If the distribution and/or use of the Program is restricted in
233 | certain countries either by patents or by copyrighted interfaces, the
234 | original copyright holder who places the Program under this License
235 | may add an explicit geographical distribution limitation excluding
236 | those countries, so that distribution is permitted only in or among
237 | countries not thus excluded. In such case, this License incorporates
238 | the limitation as if written in the body of this License.
239 |
240 | 9. The Free Software Foundation may publish revised and/or new versions
241 | of the General Public License from time to time. Such new versions will
242 | be similar in spirit to the present version, but may differ in detail to
243 | address new problems or concerns.
244 |
245 | Each version is given a distinguishing version number. If the Program
246 | specifies a version number of this License which applies to it and "any
247 | later version", you have the option of following the terms and conditions
248 | either of that version or of any later version published by the Free
249 | Software Foundation. If the Program does not specify a version number of
250 | this License, you may choose any version ever published by the Free Software
251 | Foundation.
252 |
253 | 10. If you wish to incorporate parts of the Program into other free
254 | programs whose distribution conditions are different, write to the author
255 | to ask for permission. For software which is copyrighted by the Free
256 | Software Foundation, write to the Free Software Foundation; we sometimes
257 | make exceptions for this. Our decision will be guided by the two goals
258 | of preserving the free status of all derivatives of our free software and
259 | of promoting the sharing and reuse of software generally.
260 |
261 | NO WARRANTY
262 |
263 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
264 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
265 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
266 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
267 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
268 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
269 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
270 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
271 | REPAIR OR CORRECTION.
272 |
273 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
274 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
275 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
276 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
277 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
278 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
279 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
280 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
281 | POSSIBILITY OF SUCH DAMAGES.
282 |
283 | END OF TERMS AND CONDITIONS
284 |
285 | How to Apply These Terms to Your New Programs
286 |
287 | If you develop a new program, and you want it to be of the greatest
288 | possible use to the public, the best way to achieve this is to make it
289 | free software which everyone can redistribute and change under these terms.
290 |
291 | To do so, attach the following notices to the program. It is safest
292 | to attach them to the start of each source file to most effectively
293 | convey the exclusion of warranty; and each file should have at least
294 | the "copyright" line and a pointer to where the full notice is found.
295 |
296 |
297 | Copyright (C) 2018 TGSAN
298 |
299 | This program is free software; you can redistribute it and/or modify
300 | it under the terms of the GNU General Public License as published by
301 | the Free Software Foundation; either version 2 of the License, or
302 | (at your option) any later version.
303 |
304 | This program is distributed in the hope that it will be useful,
305 | but WITHOUT ANY WARRANTY; without even the implied warranty of
306 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
307 | GNU General Public License for more details.
308 |
309 | You should have received a copy of the GNU General Public License along
310 | with this program; if not, write to the Free Software Foundation, Inc.,
311 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
312 |
313 | Also add information on how to contact you by electronic and paper mail.
314 |
315 | If the program is interactive, make it output a short notice like this
316 | when it starts in an interactive mode:
317 |
318 | Gnomovision version 69, Copyright (C) year name of author
319 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
320 | This is free software, and you are welcome to redistribute it
321 | under certain conditions; type `show c' for details.
322 |
323 | The hypothetical commands `show w' and `show c' should show the appropriate
324 | parts of the General Public License. Of course, the commands you use may
325 | be called something other than `show w' and `show c'; they could even be
326 | mouse-clicks or menu items--whatever suits your program.
327 |
328 | You should also get your employer (if you work as a programmer) or your
329 | school, if any, to sign a "copyright disclaimer" for the program, if
330 | necessary. Here is a sample; alter the names:
331 |
332 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program
333 | `Gnomovision' (which makes passes at compilers) written by James Hacker.
334 |
335 | {signature of Ty Coon}, 1 April 1989
336 | Ty Coon, President of Vice
337 |
338 | This General Public License does not permit incorporating your program into
339 | proprietary programs. If your program is a subroutine library, you may
340 | consider it more useful to permit linking proprietary applications with the
341 | library. If this is what you want to do, use the GNU Lesser General
342 | Public License instead of this License.
343 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
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 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 | Title
178 | Text
179 |
180 |
181 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
203 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
224 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
245 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
--------------------------------------------------------------------------------
/CMWTAT_DIGITAL/OSVersionInfoClass.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Win32;
2 | using System;
3 | using System.Diagnostics;
4 | using System.Runtime.InteropServices;
5 |
6 | // http://www.codeproject.com/Articles/73000/Getting-Operating-System-Version-Info-Even-for-Win
7 | //https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
8 |
9 | //Thanks to Member 7861383, Scott Vickery for the Windows 8.1 update and workaround.
10 | //I have moved it to the beginning of the Name property, though...
11 |
12 | //Thakts to Brisingr Aerowing for help with the Windows 10 adapatation
13 |
14 | namespace OSVersionInfoClass
15 | {
16 | ///
17 | /// Provides detailed information about the host operating system.
18 | ///
19 | public static class OSVersionInfo
20 | {
21 | #region ENUMS
22 | public enum SoftwareArchitecture
23 | {
24 | Unknown = 0,
25 | Bit32 = 1,
26 | Bit64 = 2
27 | }
28 |
29 | public enum ProcessorArchitecture
30 | {
31 | Unknown = 0,
32 | Bit32 = 1,
33 | Bit64 = 2,
34 | Itanium64 = 3
35 | }
36 | #endregion ENUMS
37 |
38 | #region DELEGATE DECLARATION
39 | private delegate bool IsWow64ProcessDelegate([In] IntPtr handle, [Out] out bool isWow64Process);
40 | #endregion DELEGATE DECLARATION
41 |
42 | #region BITS
43 | ///
44 | /// Determines if the current application is 32 or 64-bit.
45 | ///
46 | static public SoftwareArchitecture ProgramBits
47 | {
48 | get
49 | {
50 | SoftwareArchitecture pbits = SoftwareArchitecture.Unknown;
51 |
52 | System.Collections.IDictionary test = Environment.GetEnvironmentVariables();
53 |
54 | switch (IntPtr.Size * 8)
55 | {
56 | case 64:
57 | pbits = SoftwareArchitecture.Bit64;
58 | break;
59 |
60 | case 32:
61 | pbits = SoftwareArchitecture.Bit32;
62 | break;
63 |
64 | default:
65 | pbits = SoftwareArchitecture.Unknown;
66 | break;
67 | }
68 |
69 | return pbits;
70 | }
71 | }
72 |
73 | static public SoftwareArchitecture OSBits
74 | {
75 | get
76 | {
77 | SoftwareArchitecture osbits = SoftwareArchitecture.Unknown;
78 |
79 | switch (IntPtr.Size * 8)
80 | {
81 | case 64:
82 | osbits = SoftwareArchitecture.Bit64;
83 | break;
84 |
85 | case 32:
86 | if (Is32BitProcessOn64BitProcessor())
87 | osbits = SoftwareArchitecture.Bit64;
88 | else
89 | osbits = SoftwareArchitecture.Bit32;
90 | break;
91 |
92 | default:
93 | osbits = SoftwareArchitecture.Unknown;
94 | break;
95 | }
96 |
97 | return osbits;
98 | }
99 | }
100 |
101 | ///
102 | /// Determines if the current processor is 32 or 64-bit.
103 | ///
104 | static public ProcessorArchitecture ProcessorBits
105 | {
106 | get
107 | {
108 | ProcessorArchitecture pbits = ProcessorArchitecture.Unknown;
109 |
110 | try
111 | {
112 | SYSTEM_INFO l_System_Info = new SYSTEM_INFO();
113 | GetNativeSystemInfo(ref l_System_Info);
114 |
115 | switch (l_System_Info.uProcessorInfo.wProcessorArchitecture)
116 | {
117 | case 9: // PROCESSOR_ARCHITECTURE_AMD64
118 | pbits = ProcessorArchitecture.Bit64;
119 | break;
120 | case 6: // PROCESSOR_ARCHITECTURE_IA64
121 | pbits = ProcessorArchitecture.Itanium64;
122 | break;
123 | case 0: // PROCESSOR_ARCHITECTURE_INTEL
124 | pbits = ProcessorArchitecture.Bit32;
125 | break;
126 | default: // PROCESSOR_ARCHITECTURE_UNKNOWN
127 | pbits = ProcessorArchitecture.Unknown;
128 | break;
129 | }
130 | }
131 | catch
132 | {
133 | // Ignore
134 | }
135 |
136 | return pbits;
137 | }
138 | }
139 | #endregion BITS
140 |
141 | #region EDITION
142 | static private string s_Edition;
143 | ///
144 | /// Gets the edition of the operating system running on this computer.
145 | ///
146 | static public string Edition
147 | {
148 | get
149 | {
150 | if (s_Edition != null)
151 | return s_Edition; //***** RETURN *****//
152 |
153 | string edition = String.Empty;
154 |
155 | OperatingSystem osVersion = Environment.OSVersion;
156 | OSVERSIONINFOEX osVersionInfo = new OSVERSIONINFOEX();
157 | osVersionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFOEX));
158 |
159 | if (GetVersionEx(ref osVersionInfo))
160 | {
161 | int majorVersion = osVersion.Version.Major;
162 | int minorVersion = osVersion.Version.Minor;
163 | byte productType = osVersionInfo.wProductType;
164 | short suiteMask = osVersionInfo.wSuiteMask;
165 |
166 | #region VERSION 4
167 | if (majorVersion == 4)
168 | {
169 | if (productType == VER_NT_WORKSTATION)
170 | {
171 | // Windows NT 4.0 Workstation
172 | edition = "Workstation";
173 | }
174 | else if (productType == VER_NT_SERVER)
175 | {
176 | if ((suiteMask & VER_SUITE_ENTERPRISE) != 0)
177 | {
178 | // Windows NT 4.0 Server Enterprise
179 | edition = "Enterprise Server";
180 | }
181 | else
182 | {
183 | // Windows NT 4.0 Server
184 | edition = "Standard Server";
185 | }
186 | }
187 | }
188 | #endregion VERSION 4
189 |
190 | #region VERSION 5
191 | else if (majorVersion == 5)
192 | {
193 | if (productType == VER_NT_WORKSTATION)
194 | {
195 | if ((suiteMask & VER_SUITE_PERSONAL) != 0)
196 | {
197 | edition = "Home";
198 | }
199 | else
200 | {
201 | if (GetSystemMetrics(86) == 0) // 86 == SM_TABLETPC
202 | edition = "Professional";
203 | else
204 | edition = "Tablet Edition";
205 | }
206 | }
207 | else if (productType == VER_NT_SERVER)
208 | {
209 | if (minorVersion == 0)
210 | {
211 | if ((suiteMask & VER_SUITE_DATACENTER) != 0)
212 | {
213 | // Windows 2000 Datacenter Server
214 | edition = "Datacenter Server";
215 | }
216 | else if ((suiteMask & VER_SUITE_ENTERPRISE) != 0)
217 | {
218 | // Windows 2000 Advanced Server
219 | edition = "Advanced Server";
220 | }
221 | else
222 | {
223 | // Windows 2000 Server
224 | edition = "Server";
225 | }
226 | }
227 | else
228 | {
229 | if ((suiteMask & VER_SUITE_DATACENTER) != 0)
230 | {
231 | // Windows Server 2003 Datacenter Edition
232 | edition = "Datacenter";
233 | }
234 | else if ((suiteMask & VER_SUITE_ENTERPRISE) != 0)
235 | {
236 | // Windows Server 2003 Enterprise Edition
237 | edition = "Enterprise";
238 | }
239 | else if ((suiteMask & VER_SUITE_BLADE) != 0)
240 | {
241 | // Windows Server 2003 Web Edition
242 | edition = "Web Edition";
243 | }
244 | else
245 | {
246 | // Windows Server 2003 Standard Edition
247 | edition = "Standard";
248 | }
249 | }
250 | }
251 | }
252 | #endregion VERSION 5
253 |
254 | #region VERSION 6
255 | else if (majorVersion == 6)
256 | {
257 | int ed;
258 | if (GetProductInfo(majorVersion, minorVersion,
259 | osVersionInfo.wServicePackMajor, osVersionInfo.wServicePackMinor,
260 | out ed))
261 | {
262 | switch (ed)
263 | {
264 | case PRODUCT_BUSINESS:
265 | edition = "Business";
266 | break;
267 | case PRODUCT_BUSINESS_N:
268 | edition = "Business N";
269 | break;
270 | case PRODUCT_CLUSTER_SERVER:
271 | edition = "HPC Edition";
272 | break;
273 | case PRODUCT_CLUSTER_SERVER_V:
274 | edition = "HPC Edition without Hyper-V";
275 | break;
276 | case PRODUCT_DATACENTER_SERVER:
277 | edition = "Datacenter Server";
278 | break;
279 | case PRODUCT_DATACENTER_SERVER_CORE:
280 | edition = "Datacenter Server (core installation)";
281 | break;
282 | case PRODUCT_DATACENTER_SERVER_V:
283 | edition = "Datacenter Server without Hyper-V";
284 | break;
285 | case PRODUCT_DATACENTER_SERVER_CORE_V:
286 | edition = "Datacenter Server without Hyper-V (core installation)";
287 | break;
288 | case PRODUCT_EMBEDDED:
289 | edition = "Embedded";
290 | break;
291 | case PRODUCT_ENTERPRISE:
292 | edition = "Enterprise";
293 | break;
294 | case PRODUCT_ENTERPRISE_N:
295 | edition = "Enterprise N";
296 | break;
297 | case PRODUCT_ENTERPRISE_E:
298 | edition = "Enterprise E";
299 | break;
300 | case PRODUCT_ENTERPRISE_SERVER:
301 | edition = "Enterprise Server";
302 | break;
303 | case PRODUCT_ENTERPRISE_SERVER_CORE:
304 | edition = "Enterprise Server (core installation)";
305 | break;
306 | case PRODUCT_ENTERPRISE_SERVER_CORE_V:
307 | edition = "Enterprise Server without Hyper-V (core installation)";
308 | break;
309 | case PRODUCT_ENTERPRISE_SERVER_IA64:
310 | edition = "Enterprise Server for Itanium-based Systems";
311 | break;
312 | case PRODUCT_ENTERPRISE_SERVER_V:
313 | edition = "Enterprise Server without Hyper-V";
314 | break;
315 | case PRODUCT_ESSENTIALBUSINESS_SERVER_MGMT:
316 | edition = "Essential Business Server MGMT";
317 | break;
318 | case PRODUCT_ESSENTIALBUSINESS_SERVER_ADDL:
319 | edition = "Essential Business Server ADDL";
320 | break;
321 | case PRODUCT_ESSENTIALBUSINESS_SERVER_MGMTSVC:
322 | edition = "Essential Business Server MGMTSVC";
323 | break;
324 | case PRODUCT_ESSENTIALBUSINESS_SERVER_ADDLSVC:
325 | edition = "Essential Business Server ADDLSVC";
326 | break;
327 | case PRODUCT_HOME_BASIC:
328 | edition = "Home Basic";
329 | break;
330 | case PRODUCT_HOME_BASIC_N:
331 | edition = "Home Basic N";
332 | break;
333 | case PRODUCT_HOME_BASIC_E:
334 | edition = "Home Basic E";
335 | break;
336 | case PRODUCT_HOME_PREMIUM:
337 | edition = "Home Premium";
338 | break;
339 | case PRODUCT_HOME_PREMIUM_N:
340 | edition = "Home Premium N";
341 | break;
342 | case PRODUCT_HOME_PREMIUM_E:
343 | edition = "Home Premium E";
344 | break;
345 | case PRODUCT_HOME_PREMIUM_SERVER:
346 | edition = "Home Premium Server";
347 | break;
348 | case PRODUCT_HYPERV:
349 | edition = "Microsoft Hyper-V Server";
350 | break;
351 | case PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT:
352 | edition = "Windows Essential Business Management Server";
353 | break;
354 | case PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING:
355 | edition = "Windows Essential Business Messaging Server";
356 | break;
357 | case PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY:
358 | edition = "Windows Essential Business Security Server";
359 | break;
360 | case PRODUCT_PROFESSIONAL:
361 | edition = "Professional";
362 | break;
363 | case PRODUCT_PROFESSIONAL_N:
364 | edition = "Professional N";
365 | break;
366 | case PRODUCT_PROFESSIONAL_E:
367 | edition = "Professional E";
368 | break;
369 | case PRODUCT_SB_SOLUTION_SERVER:
370 | edition = "SB Solution Server";
371 | break;
372 | case PRODUCT_SB_SOLUTION_SERVER_EM:
373 | edition = "SB Solution Server EM";
374 | break;
375 | case PRODUCT_SERVER_FOR_SB_SOLUTIONS:
376 | edition = "Server for SB Solutions";
377 | break;
378 | case PRODUCT_SERVER_FOR_SB_SOLUTIONS_EM:
379 | edition = "Server for SB Solutions EM";
380 | break;
381 | case PRODUCT_SERVER_FOR_SMALLBUSINESS:
382 | edition = "Windows Essential Server Solutions";
383 | break;
384 | case PRODUCT_SERVER_FOR_SMALLBUSINESS_V:
385 | edition = "Windows Essential Server Solutions without Hyper-V";
386 | break;
387 | case PRODUCT_SERVER_FOUNDATION:
388 | edition = "Server Foundation";
389 | break;
390 | case PRODUCT_SMALLBUSINESS_SERVER:
391 | edition = "Windows Small Business Server";
392 | break;
393 | case PRODUCT_SMALLBUSINESS_SERVER_PREMIUM:
394 | edition = "Windows Small Business Server Premium";
395 | break;
396 | case PRODUCT_SMALLBUSINESS_SERVER_PREMIUM_CORE:
397 | edition = "Windows Small Business Server Premium (core installation)";
398 | break;
399 | case PRODUCT_SOLUTION_EMBEDDEDSERVER:
400 | edition = "Solution Embedded Server";
401 | break;
402 | case PRODUCT_SOLUTION_EMBEDDEDSERVER_CORE:
403 | edition = "Solution Embedded Server (core installation)";
404 | break;
405 | case PRODUCT_STANDARD_SERVER:
406 | edition = "Standard Server";
407 | break;
408 | case PRODUCT_STANDARD_SERVER_CORE:
409 | edition = "Standard Server (core installation)";
410 | break;
411 | case PRODUCT_STANDARD_SERVER_SOLUTIONS:
412 | edition = "Standard Server Solutions";
413 | break;
414 | case PRODUCT_STANDARD_SERVER_SOLUTIONS_CORE:
415 | edition = "Standard Server Solutions (core installation)";
416 | break;
417 | case PRODUCT_STANDARD_SERVER_CORE_V:
418 | edition = "Standard Server without Hyper-V (core installation)";
419 | break;
420 | case PRODUCT_STANDARD_SERVER_V:
421 | edition = "Standard Server without Hyper-V";
422 | break;
423 | case PRODUCT_STARTER:
424 | edition = "Starter";
425 | break;
426 | case PRODUCT_STARTER_N:
427 | edition = "Starter N";
428 | break;
429 | case PRODUCT_STARTER_E:
430 | edition = "Starter E";
431 | break;
432 | case PRODUCT_STORAGE_ENTERPRISE_SERVER:
433 | edition = "Enterprise Storage Server";
434 | break;
435 | case PRODUCT_STORAGE_ENTERPRISE_SERVER_CORE:
436 | edition = "Enterprise Storage Server (core installation)";
437 | break;
438 | case PRODUCT_STORAGE_EXPRESS_SERVER:
439 | edition = "Express Storage Server";
440 | break;
441 | case PRODUCT_STORAGE_EXPRESS_SERVER_CORE:
442 | edition = "Express Storage Server (core installation)";
443 | break;
444 | case PRODUCT_STORAGE_STANDARD_SERVER:
445 | edition = "Standard Storage Server";
446 | break;
447 | case PRODUCT_STORAGE_STANDARD_SERVER_CORE:
448 | edition = "Standard Storage Server (core installation)";
449 | break;
450 | case PRODUCT_STORAGE_WORKGROUP_SERVER:
451 | edition = "Workgroup Storage Server";
452 | break;
453 | case PRODUCT_STORAGE_WORKGROUP_SERVER_CORE:
454 | edition = "Workgroup Storage Server (core installation)";
455 | break;
456 | case PRODUCT_UNDEFINED:
457 | edition = "Unknown product";
458 | break;
459 | case PRODUCT_ULTIMATE:
460 | edition = "Ultimate";
461 | break;
462 | case PRODUCT_ULTIMATE_N:
463 | edition = "Ultimate N";
464 | break;
465 | case PRODUCT_ULTIMATE_E:
466 | edition = "Ultimate E";
467 | break;
468 | case PRODUCT_WEB_SERVER:
469 | edition = "Web Server";
470 | break;
471 | case PRODUCT_WEB_SERVER_CORE:
472 | edition = "Web Server (core installation)";
473 | break;
474 | }
475 | }
476 | }
477 | #endregion VERSION 6
478 | }
479 |
480 | s_Edition = edition;
481 | return edition;
482 | }
483 | }
484 | #endregion EDITION
485 |
486 | #region NAME
487 | static private string s_Name;
488 | ///
489 | /// Gets the name of the operating system running on this computer.
490 | ///
491 | static public string Name
492 | {
493 | get
494 | {
495 | if (s_Name != null)
496 | return s_Name; //***** RETURN *****//
497 |
498 | string name = "unknown";
499 |
500 | OperatingSystem osVersion = Environment.OSVersion;
501 | OSVERSIONINFOEX osVersionInfo = new OSVERSIONINFOEX();
502 | osVersionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFOEX));
503 |
504 | if (GetVersionEx(ref osVersionInfo))
505 | {
506 | int majorVersion = osVersion.Version.Major;
507 | int minorVersion = osVersion.Version.Minor;
508 |
509 | if (majorVersion == 6 && minorVersion == 2)
510 | {
511 | //The registry read workaround is by Scott Vickery. Thanks a lot for the help!
512 |
513 | //http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
514 |
515 | // For applications that have been manifested for Windows 8.1 & Windows 10. Applications not manifested for 8.1 or 10 will return the Windows 8 OS version value (6.2).
516 | // By reading the registry, we'll get the exact version - meaning we can even compare against Win 8 and Win 8.1.
517 | string exactVersion = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "");
518 | if (!string.IsNullOrEmpty(exactVersion))
519 | {
520 | string[] splitResult = exactVersion.Split('.');
521 | majorVersion = Convert.ToInt32(splitResult[0]);
522 | minorVersion = Convert.ToInt32(splitResult[1]);
523 | }
524 | if (IsWindows10())
525 | {
526 | majorVersion = 10;
527 | minorVersion = 0;
528 | }
529 | }
530 |
531 | switch (osVersion.Platform)
532 | {
533 | case PlatformID.Win32S:
534 | name = "Windows 3.1";
535 | break;
536 | case PlatformID.WinCE:
537 | name = "Windows CE";
538 | break;
539 | case PlatformID.Win32Windows:
540 | {
541 | if (majorVersion == 4)
542 | {
543 | string csdVersion = osVersionInfo.szCSDVersion;
544 | switch (minorVersion)
545 | {
546 | case 0:
547 | if (csdVersion == "B" || csdVersion == "C")
548 | name = "Windows 95 OSR2";
549 | else
550 | name = "Windows 95";
551 | break;
552 | case 10:
553 | if (csdVersion == "A")
554 | name = "Windows 98 Second Edition";
555 | else
556 | name = "Windows 98";
557 | break;
558 | case 90:
559 | name = "Windows Me";
560 | break;
561 | }
562 | }
563 | break;
564 | }
565 | case PlatformID.Win32NT:
566 | {
567 | byte productType = osVersionInfo.wProductType;
568 |
569 | switch (majorVersion)
570 | {
571 | case 3:
572 | name = "Windows NT 3.51";
573 | break;
574 | case 4:
575 | switch (productType)
576 | {
577 | case 1:
578 | name = "Windows NT 4.0";
579 | break;
580 | case 3:
581 | name = "Windows NT 4.0 Server";
582 | break;
583 | }
584 | break;
585 | case 5:
586 | switch (minorVersion)
587 | {
588 | case 0:
589 | name = "Windows 2000";
590 | break;
591 | case 1:
592 | name = "Windows XP";
593 | break;
594 | case 2:
595 | name = "Windows Server 2003";
596 | break;
597 | }
598 | break;
599 | case 6:
600 | switch (minorVersion)
601 | {
602 | case 0:
603 | switch (productType)
604 | {
605 | case 1:
606 | name = "Windows Vista";
607 | break;
608 | case 3:
609 | name = "Windows Server 2008";
610 | break;
611 | }
612 | break;
613 |
614 | case 1:
615 | switch (productType)
616 | {
617 | case 1:
618 | name = "Windows 7";
619 | break;
620 | case 3:
621 | name = "Windows Server 2008 R2";
622 | break;
623 | }
624 | break;
625 | case 2:
626 | switch (productType)
627 | {
628 | case 1:
629 | name = "Windows 8";
630 | break;
631 | case 3:
632 | name = "Windows Server 2012";
633 | break;
634 | }
635 | break;
636 | case 3:
637 | switch (productType)
638 | {
639 | case 1:
640 | name = "Windows 8.1";
641 | break;
642 | case 3:
643 | name = "Windows Server 2012 R2";
644 | break;
645 | }
646 | break;
647 | }
648 | break;
649 | case 10:
650 | switch (minorVersion)
651 | {
652 | case 0:
653 | switch (productType)
654 | {
655 | case 1:
656 | name = "Windows 10";
657 | break;
658 | case 3:
659 | name = "Windows Server 2016";
660 | break;
661 | }
662 | break;
663 | }
664 | break;
665 | }
666 | break;
667 | }
668 | }
669 | }
670 |
671 | s_Name = name;
672 | return name;
673 | }
674 | }
675 | #endregion NAME
676 |
677 | #region PINVOKE
678 |
679 | #region GET
680 | #region PRODUCT INFO
681 | [DllImport("Kernel32.dll")]
682 | internal static extern bool GetProductInfo(
683 | int osMajorVersion,
684 | int osMinorVersion,
685 | int spMajorVersion,
686 | int spMinorVersion,
687 | out int edition);
688 | #endregion PRODUCT INFO
689 |
690 | #region VERSION
691 | [DllImport("kernel32.dll")]
692 | private static extern bool GetVersionEx(ref OSVERSIONINFOEX osVersionInfo);
693 | #endregion VERSION
694 |
695 | #region SYSTEMMETRICS
696 | [DllImport("user32")]
697 | public static extern int GetSystemMetrics(int nIndex);
698 | #endregion SYSTEMMETRICS
699 |
700 | #region SYSTEMINFO
701 | [DllImport("kernel32.dll")]
702 | public static extern void GetSystemInfo([MarshalAs(UnmanagedType.Struct)] ref SYSTEM_INFO lpSystemInfo);
703 |
704 | [DllImport("kernel32.dll")]
705 | public static extern void GetNativeSystemInfo([MarshalAs(UnmanagedType.Struct)] ref SYSTEM_INFO lpSystemInfo);
706 | #endregion SYSTEMINFO
707 |
708 | #endregion GET
709 |
710 | #region OSVERSIONINFOEX
711 | [StructLayout(LayoutKind.Sequential)]
712 | private struct OSVERSIONINFOEX
713 | {
714 | public int dwOSVersionInfoSize;
715 | public int dwMajorVersion;
716 | public int dwMinorVersion;
717 | public int dwBuildNumber;
718 | public int dwPlatformId;
719 | [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
720 | public string szCSDVersion;
721 | public short wServicePackMajor;
722 | public short wServicePackMinor;
723 | public short wSuiteMask;
724 | public byte wProductType;
725 | public byte wReserved;
726 | }
727 | #endregion OSVERSIONINFOEX
728 |
729 | #region SYSTEM_INFO
730 | [StructLayout(LayoutKind.Sequential)]
731 | public struct SYSTEM_INFO
732 | {
733 | internal _PROCESSOR_INFO_UNION uProcessorInfo;
734 | public uint dwPageSize;
735 | public IntPtr lpMinimumApplicationAddress;
736 | public IntPtr lpMaximumApplicationAddress;
737 | public IntPtr dwActiveProcessorMask;
738 | public uint dwNumberOfProcessors;
739 | public uint dwProcessorType;
740 | public uint dwAllocationGranularity;
741 | public ushort dwProcessorLevel;
742 | public ushort dwProcessorRevision;
743 | }
744 | #endregion SYSTEM_INFO
745 |
746 | #region _PROCESSOR_INFO_UNION
747 | [StructLayout(LayoutKind.Explicit)]
748 | public struct _PROCESSOR_INFO_UNION
749 | {
750 | [FieldOffset(0)]
751 | internal uint dwOemId;
752 | [FieldOffset(0)]
753 | internal ushort wProcessorArchitecture;
754 | [FieldOffset(2)]
755 | internal ushort wReserved;
756 | }
757 | #endregion _PROCESSOR_INFO_UNION
758 |
759 | #region 64 BIT OS DETECTION
760 | [DllImport("kernel32", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
761 | public extern static IntPtr LoadLibrary(string libraryName);
762 |
763 | [DllImport("kernel32", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
764 | public extern static IntPtr GetProcAddress(IntPtr hwnd, string procedureName);
765 | #endregion 64 BIT OS DETECTION
766 |
767 | #region PRODUCT
768 | private const int PRODUCT_UNDEFINED = 0x00000000;
769 | private const int PRODUCT_ULTIMATE = 0x00000001;
770 | private const int PRODUCT_HOME_BASIC = 0x00000002;
771 | private const int PRODUCT_HOME_PREMIUM = 0x00000003;
772 | private const int PRODUCT_ENTERPRISE = 0x00000004;
773 | private const int PRODUCT_HOME_BASIC_N = 0x00000005;
774 | private const int PRODUCT_BUSINESS = 0x00000006;
775 | private const int PRODUCT_STANDARD_SERVER = 0x00000007;
776 | private const int PRODUCT_DATACENTER_SERVER = 0x00000008;
777 | private const int PRODUCT_SMALLBUSINESS_SERVER = 0x00000009;
778 | private const int PRODUCT_ENTERPRISE_SERVER = 0x0000000A;
779 | private const int PRODUCT_STARTER = 0x0000000B;
780 | private const int PRODUCT_DATACENTER_SERVER_CORE = 0x0000000C;
781 | private const int PRODUCT_STANDARD_SERVER_CORE = 0x0000000D;
782 | private const int PRODUCT_ENTERPRISE_SERVER_CORE = 0x0000000E;
783 | private const int PRODUCT_ENTERPRISE_SERVER_IA64 = 0x0000000F;
784 | private const int PRODUCT_BUSINESS_N = 0x00000010;
785 | private const int PRODUCT_WEB_SERVER = 0x00000011;
786 | private const int PRODUCT_CLUSTER_SERVER = 0x00000012;
787 | private const int PRODUCT_HOME_SERVER = 0x00000013;
788 | private const int PRODUCT_STORAGE_EXPRESS_SERVER = 0x00000014;
789 | private const int PRODUCT_STORAGE_STANDARD_SERVER = 0x00000015;
790 | private const int PRODUCT_STORAGE_WORKGROUP_SERVER = 0x00000016;
791 | private const int PRODUCT_STORAGE_ENTERPRISE_SERVER = 0x00000017;
792 | private const int PRODUCT_SERVER_FOR_SMALLBUSINESS = 0x00000018;
793 | private const int PRODUCT_SMALLBUSINESS_SERVER_PREMIUM = 0x00000019;
794 | private const int PRODUCT_HOME_PREMIUM_N = 0x0000001A;
795 | private const int PRODUCT_ENTERPRISE_N = 0x0000001B;
796 | private const int PRODUCT_ULTIMATE_N = 0x0000001C;
797 | private const int PRODUCT_WEB_SERVER_CORE = 0x0000001D;
798 | private const int PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT = 0x0000001E;
799 | private const int PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY = 0x0000001F;
800 | private const int PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING = 0x00000020;
801 | private const int PRODUCT_SERVER_FOUNDATION = 0x00000021;
802 | private const int PRODUCT_HOME_PREMIUM_SERVER = 0x00000022;
803 | private const int PRODUCT_SERVER_FOR_SMALLBUSINESS_V = 0x00000023;
804 | private const int PRODUCT_STANDARD_SERVER_V = 0x00000024;
805 | private const int PRODUCT_DATACENTER_SERVER_V = 0x00000025;
806 | private const int PRODUCT_ENTERPRISE_SERVER_V = 0x00000026;
807 | private const int PRODUCT_DATACENTER_SERVER_CORE_V = 0x00000027;
808 | private const int PRODUCT_STANDARD_SERVER_CORE_V = 0x00000028;
809 | private const int PRODUCT_ENTERPRISE_SERVER_CORE_V = 0x00000029;
810 | private const int PRODUCT_HYPERV = 0x0000002A;
811 | private const int PRODUCT_STORAGE_EXPRESS_SERVER_CORE = 0x0000002B;
812 | private const int PRODUCT_STORAGE_STANDARD_SERVER_CORE = 0x0000002C;
813 | private const int PRODUCT_STORAGE_WORKGROUP_SERVER_CORE = 0x0000002D;
814 | private const int PRODUCT_STORAGE_ENTERPRISE_SERVER_CORE = 0x0000002E;
815 | private const int PRODUCT_STARTER_N = 0x0000002F;
816 | private const int PRODUCT_PROFESSIONAL = 0x00000030;
817 | private const int PRODUCT_PROFESSIONAL_N = 0x00000031;
818 | private const int PRODUCT_SB_SOLUTION_SERVER = 0x00000032;
819 | private const int PRODUCT_SERVER_FOR_SB_SOLUTIONS = 0x00000033;
820 | private const int PRODUCT_STANDARD_SERVER_SOLUTIONS = 0x00000034;
821 | private const int PRODUCT_STANDARD_SERVER_SOLUTIONS_CORE = 0x00000035;
822 | private const int PRODUCT_SB_SOLUTION_SERVER_EM = 0x00000036;
823 | private const int PRODUCT_SERVER_FOR_SB_SOLUTIONS_EM = 0x00000037;
824 | private const int PRODUCT_SOLUTION_EMBEDDEDSERVER = 0x00000038;
825 | private const int PRODUCT_SOLUTION_EMBEDDEDSERVER_CORE = 0x00000039;
826 | //private const int ???? = 0x0000003A;
827 | private const int PRODUCT_ESSENTIALBUSINESS_SERVER_MGMT = 0x0000003B;
828 | private const int PRODUCT_ESSENTIALBUSINESS_SERVER_ADDL = 0x0000003C;
829 | private const int PRODUCT_ESSENTIALBUSINESS_SERVER_MGMTSVC = 0x0000003D;
830 | private const int PRODUCT_ESSENTIALBUSINESS_SERVER_ADDLSVC = 0x0000003E;
831 | private const int PRODUCT_SMALLBUSINESS_SERVER_PREMIUM_CORE = 0x0000003F;
832 | private const int PRODUCT_CLUSTER_SERVER_V = 0x00000040;
833 | private const int PRODUCT_EMBEDDED = 0x00000041;
834 | private const int PRODUCT_STARTER_E = 0x00000042;
835 | private const int PRODUCT_HOME_BASIC_E = 0x00000043;
836 | private const int PRODUCT_HOME_PREMIUM_E = 0x00000044;
837 | private const int PRODUCT_PROFESSIONAL_E = 0x00000045;
838 | private const int PRODUCT_ENTERPRISE_E = 0x00000046;
839 | private const int PRODUCT_ULTIMATE_E = 0x00000047;
840 | //private const int PRODUCT_UNLICENSED = 0xABCDABCD;
841 | #endregion PRODUCT
842 |
843 | #region VERSIONS
844 | private const int VER_NT_WORKSTATION = 1;
845 | private const int VER_NT_DOMAIN_CONTROLLER = 2;
846 | private const int VER_NT_SERVER = 3;
847 | private const int VER_SUITE_SMALLBUSINESS = 1;
848 | private const int VER_SUITE_ENTERPRISE = 2;
849 | private const int VER_SUITE_TERMINAL = 16;
850 | private const int VER_SUITE_DATACENTER = 128;
851 | private const int VER_SUITE_SINGLEUSERTS = 256;
852 | private const int VER_SUITE_PERSONAL = 512;
853 | private const int VER_SUITE_BLADE = 1024;
854 | #endregion VERSIONS
855 |
856 | #endregion PINVOKE
857 |
858 | #region SERVICE PACK
859 | ///
860 | /// Gets the service pack information of the operating system running on this computer.
861 | ///
862 | static public string ServicePack
863 | {
864 | get
865 | {
866 | string servicePack = String.Empty;
867 | OSVERSIONINFOEX osVersionInfo = new OSVERSIONINFOEX();
868 |
869 | osVersionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFOEX));
870 |
871 | if (GetVersionEx(ref osVersionInfo))
872 | {
873 | servicePack = osVersionInfo.szCSDVersion;
874 | }
875 |
876 | return servicePack;
877 | }
878 | }
879 | #endregion SERVICE PACK
880 |
881 | #region VERSION
882 | #region BUILD
883 | ///
884 | /// Gets the build version number of the operating system running on this computer.
885 | ///
886 | static public int BuildVersion
887 | {
888 | get
889 | {
890 | return int.Parse(RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentBuildNumber", "0"));
891 | }
892 | }
893 | #endregion BUILD
894 |
895 | #region FULL
896 | #region STRING
897 | ///
898 | /// Gets the full version string of the operating system running on this computer.
899 | ///
900 | static public string VersionString
901 | {
902 | get
903 | {
904 | return Version.ToString();
905 | }
906 | }
907 | #endregion STRING
908 |
909 | #region VERSION
910 | ///
911 | /// Gets the full version of the operating system running on this computer.
912 | ///
913 | static public Version Version
914 | {
915 | get
916 | {
917 | return new Version(MajorVersion, MinorVersion, BuildVersion, RevisionVersion);
918 | }
919 | }
920 | #endregion VERSION
921 | #endregion FULL
922 |
923 | #region MAJOR
924 | ///
925 | /// Gets the major version number of the operating system running on this computer.
926 | ///
927 | static public int MajorVersion
928 | {
929 | get
930 | {
931 | if(IsWindows10())
932 | {
933 | return 10;
934 | }
935 | string exactVersion = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "");
936 | if(!string.IsNullOrEmpty(exactVersion))
937 | {
938 | string[] splitVersion = exactVersion.Split('.');
939 | return int.Parse(splitVersion[0]);
940 | }
941 | return Environment.OSVersion.Version.Major;
942 | }
943 | }
944 | #endregion MAJOR
945 |
946 | #region MINOR
947 | ///
948 | /// Gets the minor version number of the operating system running on this computer.
949 | ///
950 | static public int MinorVersion
951 | {
952 | get
953 | {
954 | if (IsWindows10())
955 | {
956 | return 0;
957 | }
958 | string exactVersion = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "");
959 | if (!string.IsNullOrEmpty(exactVersion))
960 | {
961 | string[] splitVersion = exactVersion.Split('.');
962 | return int.Parse(splitVersion[1]);
963 | }
964 | return Environment.OSVersion.Version.Minor;
965 | }
966 | }
967 | #endregion MINOR
968 |
969 | #region REVISION
970 | ///
971 | /// Gets the revision version number of the operating system running on this computer.
972 | ///
973 | static public int RevisionVersion
974 | {
975 | get
976 | {
977 | if(IsWindows10())
978 | {
979 | return 0;
980 | }
981 | return Environment.OSVersion.Version.Revision;
982 | }
983 | }
984 | #endregion REVISION
985 | #endregion VERSION
986 |
987 | #region 64 BIT OS DETECTION
988 | private static IsWow64ProcessDelegate GetIsWow64ProcessDelegate()
989 | {
990 | IntPtr handle = LoadLibrary("kernel32");
991 |
992 | if (handle != IntPtr.Zero)
993 | {
994 | IntPtr fnPtr = GetProcAddress(handle, "IsWow64Process");
995 |
996 | if (fnPtr != IntPtr.Zero)
997 | {
998 | return (IsWow64ProcessDelegate)Marshal.GetDelegateForFunctionPointer((IntPtr)fnPtr, typeof(IsWow64ProcessDelegate));
999 | }
1000 | }
1001 |
1002 | return null;
1003 | }
1004 |
1005 | private static bool Is32BitProcessOn64BitProcessor()
1006 | {
1007 | IsWow64ProcessDelegate fnDelegate = GetIsWow64ProcessDelegate();
1008 |
1009 | if (fnDelegate == null)
1010 | {
1011 | return false;
1012 | }
1013 |
1014 | bool isWow64;
1015 | bool retVal = fnDelegate.Invoke(Process.GetCurrentProcess().Handle, out isWow64);
1016 |
1017 | if (retVal == false)
1018 | {
1019 | return false;
1020 | }
1021 |
1022 | return isWow64;
1023 | }
1024 | #endregion 64 BIT OS DETECTION
1025 |
1026 | #region Windows 10 Detection
1027 |
1028 | private static bool IsWindows10()
1029 | {
1030 | string productName = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", "");
1031 | if (productName.StartsWith("Windows 10", StringComparison.OrdinalIgnoreCase))
1032 | {
1033 | return true;
1034 | }
1035 | return false;
1036 | }
1037 |
1038 | #endregion
1039 |
1040 | #region Registry Methods
1041 |
1042 | private static string RegistryRead(string RegistryPath, string Field, string DefaultValue)
1043 | {
1044 | string rtn = "";
1045 | string backSlash = "";
1046 | string newRegistryPath = "";
1047 |
1048 | try
1049 | {
1050 | RegistryKey OurKey = null;
1051 | string[] split_result = RegistryPath.Split('\\');
1052 |
1053 | if (split_result.Length > 0)
1054 | {
1055 | split_result[0] = split_result[0].ToUpper(); // Make the first entry uppercase...
1056 |
1057 | if (split_result[0] == "HKEY_CLASSES_ROOT") OurKey = Registry.ClassesRoot;
1058 | else if (split_result[0] == "HKEY_CURRENT_USER") OurKey = Registry.CurrentUser;
1059 | else if (split_result[0] == "HKEY_LOCAL_MACHINE") OurKey = Registry.LocalMachine;
1060 | else if (split_result[0] == "HKEY_USERS") OurKey = Registry.Users;
1061 | else if (split_result[0] == "HKEY_CURRENT_CONFIG") OurKey = Registry.CurrentConfig;
1062 |
1063 | if (OurKey != null)
1064 | {
1065 | for (int i = 1; i < split_result.Length; i++)
1066 | {
1067 | newRegistryPath += backSlash + split_result[i];
1068 | backSlash = "\\";
1069 | }
1070 |
1071 | if (newRegistryPath != "")
1072 | {
1073 | //rtn = (string)Registry.GetValue(RegistryPath, "CurrentVersion", DefaultValue);
1074 |
1075 | OurKey = OurKey.OpenSubKey(newRegistryPath);
1076 | rtn = (string)OurKey.GetValue(Field, DefaultValue);
1077 | OurKey.Close();
1078 | }
1079 | }
1080 | }
1081 | }
1082 | catch { }
1083 |
1084 | return rtn;
1085 | }
1086 |
1087 | #endregion Registry Methods
1088 | }
1089 | }
1090 |
--------------------------------------------------------------------------------