private static byte[] GetDiskSignature(ManagementScope scope, string volume) { return(WMIUtils.GetRemoteRegistryBinaryValue(scope, "SYSTEM\\MountedDevices", "\\DosDevices\\" + volume + ":")); }
public static byte[] GetRemoteBootVolumeSignature(ManagementScope defaultScope) { string valueName = "\\DosDevices\\" + WMIUtils.GetRemoteRegistryValueString(defaultScope, "Software\\Microsoft\\Windows NT\\CurrentVersion", "SystemRoot").Split('\\').GetValue(0); return(WMIUtils.GetRemoteRegistryBinaryValue(defaultScope, "SYSTEM\\MountedDevices", valueName)); }