2019-05-03 00:29:04 +02:00
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
|
|
// Licensed under the MIT license.
|
|
|
|
|
|
|
|
#include "precomp.h"
|
|
|
|
|
2020-11-25 22:02:10 +01:00
|
|
|
#include "../inc/conint.h"
|
2019-05-03 00:29:04 +02:00
|
|
|
|
|
|
|
using namespace Microsoft::Console::Internal;
|
|
|
|
|
2019-06-11 22:27:09 +02:00
|
|
|
[[nodiscard]] HRESULT ProcessPolicy::CheckAppModelPolicy(const HANDLE /*hToken*/,
|
|
|
|
bool& fIsWrongWayBlocked) noexcept
|
2019-05-03 00:29:04 +02:00
|
|
|
{
|
|
|
|
fIsWrongWayBlocked = false;
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2019-06-11 22:27:09 +02:00
|
|
|
[[nodiscard]] HRESULT ProcessPolicy::CheckIntegrityLevelPolicy(const HANDLE /*hOtherToken*/,
|
|
|
|
bool& fIsWrongWayBlocked) noexcept
|
2019-05-03 00:29:04 +02:00
|
|
|
{
|
|
|
|
fIsWrongWayBlocked = false;
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void EdpPolicy::AuditClipboard(const std::wstring_view /*destinationName*/) noexcept
|
|
|
|
{
|
|
|
|
}
|
2020-02-04 00:13:31 +01:00
|
|
|
|
|
|
|
[[nodiscard]] HRESULT Theming::TrySetDarkMode(HWND /*hwnd*/) noexcept
|
|
|
|
{
|
|
|
|
return S_FALSE;
|
|
|
|
}
|
2021-02-11 22:07:50 +01:00
|
|
|
|
2021-02-11 22:19:27 +01:00
|
|
|
[[nodiscard]] HRESULT DefaultApp::CheckDefaultAppPolicy(bool& isEnabled) noexcept
|
2021-02-11 22:07:50 +01:00
|
|
|
{
|
2021-03-26 23:09:49 +01:00
|
|
|
// True so propsheet will show configuration options but be sure that
|
|
|
|
// the open one won't attempt handoff from double click of OpenConsole.exe
|
|
|
|
isEnabled = true;
|
2021-02-11 22:07:50 +01:00
|
|
|
return S_OK;
|
2021-03-26 23:09:49 +01:00
|
|
|
}
|