From bd145e14b0386d003d6e960023ac0b69ed81ad4f Mon Sep 17 00:00:00 2001 From: user Date: Sat, 1 Apr 2023 19:54:38 +0200 Subject: [PATCH] chores --- SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs b/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs index 3f59c935..4c9ab014 100644 --- a/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs +++ b/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs @@ -6,13 +6,12 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -using System; using System.Linq; using System.Management; -using System.Runtime.InteropServices; using SafeExamBrowser.Logging.Contracts; using SafeExamBrowser.SystemComponents.Contracts; using Microsoft.Win32; +using System; namespace SafeExamBrowser.SystemComponents { @@ -61,8 +60,6 @@ namespace SafeExamBrowser.SystemComponents isVirtualMachine |= model.Contains("virtualbox"); isVirtualMachine |= model.Contains("Q35 +"); - Console.WriteLine($"biosInfo: {biosInfo}, manufacturer: {manufacturer}, model: {model}, isVirtualMachine: {isVirtualMachine}"); - return isVirtualMachine; } @@ -109,7 +106,7 @@ namespace SafeExamBrowser.SystemComponents continue; } - string currHostname = Environment.GetEnvironmentVariable("COMPUTERNAME").ToLower(); + string currHostname = System.Environment.GetEnvironmentVariable("COMPUTERNAME").ToLower(); string cacheHostname = ((string) cacheKey.GetValue("DeviceName")).ToLower(); // windows timeline syncs with other hosts that a user has logged into, hence avoid false positives