2018-02-08 13:32:48 +01:00
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
|
|
|
|
|
*
|
|
|
|
|
* 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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-02-14 15:26:05 +01:00
|
|
|
|
namespace SafeExamBrowser.Contracts.WindowsApi
|
2018-02-08 13:32:48 +01:00
|
|
|
|
{
|
2018-02-14 15:26:05 +01:00
|
|
|
|
public interface IProcessFactory
|
2018-02-08 13:32:48 +01:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2018-02-14 15:26:05 +01:00
|
|
|
|
/// Starts a new process on the currently active desktop.
|
2018-02-08 13:32:48 +01:00
|
|
|
|
/// </summary>
|
2018-02-14 15:26:05 +01:00
|
|
|
|
/// <exception cref="System.ComponentModel.Win32Exception">If the process could not be started.</exception>
|
|
|
|
|
IProcess StartNew(string path, params string[] args);
|
2018-02-08 13:32:48 +01:00
|
|
|
|
}
|
|
|
|
|
}
|