示例#1
0
 public static int GetRemoteRegistryValueInt(ManagementScope scope, string subKeyName, string valueName)
 {
     return(Convert.ToInt32(WMIUtils.GetRemoteRegistryValue(scope, "GetDWORDValue", subKeyName, valueName)));
 }
示例#2
0
 public static byte[] GetRemoteRegistryBinaryValue(ManagementScope scope, string subKeyName, string valueName)
 {
     return(WMIUtils.GetRemoteRegistryValue(scope, "GetBinaryValue", subKeyName, valueName) as byte[]);
 }
示例#3
0
 public static string GetRemoteRegistryValueString(ManagementScope scope, string subKeyName, string valueName)
 {
     return(WMIUtils.GetRemoteRegistryValue(scope, "GetStringValue", subKeyName, valueName).ToString());
 }