2017-12-14 21 views
0

UWF API에 대한 설명을 어디에서 얻을 수 있습니까? UWF가 활성화되어 있으면 어떤 장치에서 코드를 확인해야합니다 ... 모든 함수는 UWFCFGMGMT.DLL 및 UWFSERVICINGAPI.DLL에있는 것처럼 보입니다. MSDN에서도 문서를 찾을 수 없습니다 !! 들으통합 쓰기 필터 API

프레드

답변

0

여기에 UWF WMI API에 대한 문서가있다 :

https://docs.microsoft.com/en-us/windows-hardware/customize/enterprise/uwf-wmi-provider-reference

당신은 설명 WMI 기능을 사용하려면 WMI 인터페이스를 사용할 수, 예컨대 :

private bool IsUwfEnabled() 
{ 
    try 
    { 
     ManagementScope scope = new ManagementScope(@"root\standardcimv2\embedded"); 
     ManagementClass uwfClass = new ManagementClass(scope.Path.Path, "UWF_Filter", null); 

     foreach (var uwfObject in uwfClass.GetInstances()) 
     { 
      return uwfObject["CurrentEnabled"].ToString().Equals("False") ? false : true; 
     } 
    } 
    catch (Exception e) 
    { 
     // Could not determine whether UWF is on! 
     // Error handling here 
    } 
    return false; 
}