以编程方式检查Windows 7是否已激活

问题描述:

背景: 我正在创建将被加载到多个工作站的系统映像.将映像加载到工作站后,将进行Windows激活.这些计算机将不会连接到Internet,而是会通过电话激活.

Background: I am creating system images that will be loaded onto several workstations. Windows activation will occur after the images are loaded onto the workstation. These computers will not be connected to the Internet and will be activated over the phone.

问题: 我想以编程方式检查是否激活了Windows 7,因此如果未激活Windows 7,我们的软件将无法运行.我们的软件是用C#编写的.

Question: I would like to check programmatically if Windows 7 is activated or not, so that our software will not run if Windows 7 is not activated. Our software is written in C#.

软件许可API- SLIsGenuineLocal() . (替换 LegitCheck )

The Software Licensing API - SLIAPI, take at look at SLIsGenuineLocal(). (Replaces LegitCheck)