| 1 |
/* |
| 2 |
* Copyright (C) 2023 Mohamad Al-Jaf |
| 3 |
* |
| 4 |
* This library is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU Lesser General Public |
| 6 |
* License as published by the Free Software Foundation; either |
| 7 |
* version 2.1 of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This library is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
* Lesser General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Lesser General Public |
| 15 |
* License along with this library; if not, write to the Free Software |
| 16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifdef __WIDL__ |
| 20 |
#pragma winrt ns_prefix |
| 21 |
#endif |
| 22 |
|
| 23 |
import "inspectable.idl"; |
| 24 |
import "asyncinfo.idl"; |
| 25 |
import "eventtoken.idl"; |
| 26 |
import "windowscontracts.idl"; |
| 27 |
import "windows.foundation.idl"; |
| 28 |
|
| 29 |
namespace Windows.Security.Isolation { |
| 30 |
typedef enum IsolatedWindowsEnvironmentHostError IsolatedWindowsEnvironmentHostError; |
| 31 |
|
| 32 |
interface IIsolatedWindowsEnvironmentHostStatics; |
| 33 |
|
| 34 |
runtimeclass IsolatedWindowsEnvironmentHost; |
| 35 |
|
| 36 |
declare { |
| 37 |
interface Windows.Foundation.Collections.IVectorView<Windows.Security.Isolation.IsolatedWindowsEnvironmentHostError>; |
| 38 |
} |
| 39 |
|
| 40 |
[ |
| 41 |
contractversion(3.0) |
| 42 |
] |
| 43 |
apicontract IsolatedWindowsEnvironmentContract |
| 44 |
{ |
| 45 |
} |
| 46 |
|
| 47 |
[ |
| 48 |
contract(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract, 1.0) |
| 49 |
] |
| 50 |
enum IsolatedWindowsEnvironmentHostError |
| 51 |
{ |
| 52 |
AdminPolicyIsDisabledOrNotPresent = 0, |
| 53 |
FeatureNotInstalled = 1, |
| 54 |
HardwareRequirementsNotMet = 2, |
| 55 |
RebootRequired = 3, |
| 56 |
UnknownError = 4, |
| 57 |
}; |
| 58 |
|
| 59 |
[ |
| 60 |
contract(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract, 1.0), |
| 61 |
exclusiveto(Windows.Security.Isolation.IsolatedWindowsEnvironmentHost), |
| 62 |
uuid(2c0e22c7-05a0-517a-b81c-6ee8790c381f) |
| 63 |
] |
| 64 |
interface IIsolatedWindowsEnvironmentHostStatics : IInspectable |
| 65 |
{ |
| 66 |
[propget] HRESULT IsReady([out, retval] boolean *value); |
| 67 |
[propget] HRESULT HostErrors([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Security.Isolation.IsolatedWindowsEnvironmentHostError> **value); |
| 68 |
} |
| 69 |
|
| 70 |
[ |
| 71 |
contract(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract, 1.0), |
| 72 |
marshaling_behavior(agile), |
| 73 |
static(Windows.Security.Isolation.IIsolatedWindowsEnvironmentHostStatics, Windows.Security.Isolation.IsolatedWindowsEnvironmentContract, 1.0), |
| 74 |
threading(both) |
| 75 |
] |
| 76 |
runtimeclass IsolatedWindowsEnvironmentHost |
| 77 |
{ |
| 78 |
} |
| 79 |
} |