Update Safe Exam Browser Patch to 3.10.0.826

This commit is contained in:
2025-09-16 16:32:31 +02:00
parent 4827ae1afc
commit dd82d45ed8
320 changed files with 8445 additions and 5295 deletions

View File

@@ -109,6 +109,30 @@ namespace SafeExamBrowser.SystemComponents.Network
logger.Info("Started monitoring the network adapter.");
}
/// <remarks>
/// Requesting access is required as of fall 2024 and must be granted manually by the user, otherwise all wireless functionality will
/// be denied by the system (see also https://learn.microsoft.com/en-us/windows/win32/nativewifi/wi-fi-access-location-changes).
/// </remarks>
public bool RequestAccess()
{
var granted = false;
try
{
var task = WiFiAdapter.RequestAccessAsync().AsTask();
var status = task.GetAwaiter().GetResult();
granted = status == WiFiAccessStatus.Allowed;
logger.Debug($"Requested access to wireless networking functionality: {status}.");
}
catch (Exception e)
{
logger.Error("Failed to request access to wireless networking functionality!", e);
}
return granted;
}
public void StartWirelessNetworkScanning()
{
timer?.Start();
@@ -209,8 +233,6 @@ namespace SafeExamBrowser.SystemComponents.Network
{
try
{
// Requesting access is required as of fall 2024 and must be granted manually by the user, otherwise all wireless functionality will
// be denied by the system (see also https://learn.microsoft.com/en-us/windows/win32/nativewifi/wi-fi-access-location-changes).
var task = WiFiAdapter.RequestAccessAsync().AsTask();
var status = task.GetAwaiter().GetResult();