Restore SEBPatch
This commit is contained in:
34
SafeExamBrowser.WindowsApi.Contracts/IDesktopFactory.cs
Normal file
34
SafeExamBrowser.WindowsApi.Contracts/IDesktopFactory.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.WindowsApi.Contracts
|
||||
{
|
||||
/// <summary>
|
||||
/// The factory for desktops of the operating system.
|
||||
/// </summary>
|
||||
public interface IDesktopFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new desktop with the given name.
|
||||
/// </summary>
|
||||
/// <exception cref="System.ComponentModel.Win32Exception">If the desktop could not be created.</exception>
|
||||
IDesktop CreateNew(string name);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new desktop with a random name.
|
||||
/// </summary>
|
||||
/// <exception cref="System.ComponentModel.Win32Exception">If the desktop could not be created.</exception>
|
||||
IDesktop CreateRandom();
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the currently active desktop.
|
||||
/// </summary>
|
||||
/// <exception cref="System.ComponentModel.Win32Exception">If the current desktop could not be retrieved.</exception>
|
||||
IDesktop GetCurrent();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user