Exemplo n.º 1
0
 private static byte[] GetDiskSignature(ManagementScope scope, string volume)
 {
     return(WMIUtils.GetRemoteRegistryBinaryValue(scope, "SYSTEM\\MountedDevices", "\\DosDevices\\" + volume + ":"));
 }
Exemplo n.º 2
0
    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));
    }