Пример #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());
 }