Windows系统是否已获得许可? [英] Windows System licensed or not?
本文介绍了Windows系统是否已获得许可?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想判断Windows系统是否已获得许可?如果有一些 windows API 涵盖了,谢谢.
I want to judge the windows system is licensed or not?If there are some windows API to cover it,thank you。
推荐答案
try:
http://stackoverflow.com/questions/1552392/determine- Genuine-windows-installation-in-c-sharp/1552434#1552434 [
try:
http://stackoverflow.com/questions/1552392/determine-genuine-windows-installation-in-c-sharp/1552434#1552434[^]
我使用以下代码来判断许可证.
I use the follow code to judge the license.
bool IsWindowsGenuine()
{
GUID uid;
RPC_WSTR rpc=(RPC_WSTR)_T("55c92734-d682-4d71-983e-d6ec3f16059f");
UuidFromString(rpc,&uid);
SL_GENUINE_STATE state;
SLIsGenuineLocal(&uid,&state,NULL);
if(state==SL_GENUINE_STATE::SL_GEN_STATE_IS_GENUINE)
return true;
return false;
}
这篇关于Windows系统是否已获得许可?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文