检测操作系统以编程方式处于安全模式(S模式) [英] Detect OS is In Secure mode(S-Mode) Programatically

查看:102
本文介绍了检测操作系统以编程方式处于安全模式(S模式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何API可用于检测设备中的操作系统是否处于安全模式?

Is there any API available to detect the OS in the device is in Secure mode or not?.

我尝试使用"Kernel32.dll"。但WACK认证失败了吗?是否还有其他方式以编程方式检测它?。

I tried with the "Kernel32.dll" but it fails with WACK certification? Is there any other way to detect it programatically?.

推荐答案

您好,

实际上没有可用于直接检测操作系统版本的API。同样在UWP平台中,我们检测OS版本是不对的。我们应该使用ApiInformation  https://docs.microsoft.com/en-us/uwp/api/windows.foundation.metadata.apiinformation
并编写版本自适应代码:  https://docs.microsoft。 com / zh-CN / windows / uwp / debug-test-perf / version-adaptive-code <

Actually there is no API available for you to directly detect the OS version. Also in UWP plaform it is not right for us to detect the OS version. We should use ApiInformation https://docs.microsoft.com/en-us/uwp/api/windows.foundation.metadata.apiinformation and write version adaptive code: https://docs.microsoft.com/en-us/windows/uwp/debug-test-perf/version-adaptive-code

祝你好运,

Barry


这篇关于检测操作系统以编程方式处于安全模式(S模式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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