如何检查我的窗口操作系统是否在C#中被激活? [英] How to check my window OS is activated or not in C#?

查看:314
本文介绍了如何检查我的窗口操作系统是否在C#中被激活?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨所有

i想要检查我的操作系统是否已激活或未使用c#。

请帮助

TIA



我尝试了什么:



i尝试使用WMI查询但又取决于操作系统版本。

i想为所有操作系统编写方法

hi all
i want to check my operating system is activated or not using c#.
Please help
TIA

What I have tried:

i tried using WMI queries but again it will depend on os version.
i want to write method for all operating system

推荐答案

为什么? Windows可以为您做到这一点...



以下是几种不同的方法:检查Windows 10是否被激活 - gHacks Tech News [ ^ ]



但是,如果您需要编写代码来执行此操作,那么此Google搜索会为您提供许多答案: c#c​​heck windows activation [ ^ ]



使用上述搜索结果发现ch: c# - 以编程方式检查Windows 7是否已激活 - Stack Overflow [ ^ ] - 再说一次。选择最适合你的解决方案。
Why? Windows can do that for you...

Here are several different ways of doing it: Check if Windows 10 is activated - gHacks Tech News[^]

However, if you need to write code to do it, then this Google Search has many answers for you: c# check windows activation[^]

This was found using the above search: c# - Programmatically check whether Windows 7 is activated - Stack Overflow[^] - again,. pick the solution that suits you best.


这篇关于如何检查我的窗口操作系统是否在C#中被激活?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆