2018-08-17 14:48:50 +02:00
|
|
|
|
/*
|
2023-03-08 00:30:20 +01:00
|
|
|
|
* Copyright (c) 2023 ETH Zürich, Educational Development and Technology (LET)
|
2018-08-17 14:48:50 +02:00
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.WindowsApi.Contracts
|
2018-08-17 14:48:50 +02:00
|
|
|
|
{
|
2018-08-31 07:49:41 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines an abstraction of the Windows explorer shell (i.e. the process controlling the GUI of the operating system).
|
|
|
|
|
/// </summary>
|
2018-08-17 14:48:50 +02:00
|
|
|
|
public interface IExplorerShell
|
|
|
|
|
{
|
2018-10-30 11:24:28 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Hides all currently opened windows. The explorer shell needs to be running in order to execute this operation!
|
|
|
|
|
/// </summary>
|
|
|
|
|
void HideAllWindows();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Restores all previously hidden windows. The explorer shell needs to be running in order to execute this operation!
|
|
|
|
|
/// </summary>
|
|
|
|
|
void RestoreAllWindows();
|
|
|
|
|
|
2018-08-17 14:48:50 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Starts the Windows explorer shell, if it isn't already running.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Start();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gracefully terminates the Windows explorer shell, if it is running.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Terminate();
|
|
|
|
|
}
|
|
|
|
|
}
|