terminal/src/interactivity/inc/IHighDpiApi.hpp
Dustin Howett 1e42bc8e4f Merged PR 5421982: Reflect OS build changes
[Git2Git] Git Train: Merge of building/rs_onecore_dep_uxp/201117-2002 into official/rs_onecore_dep_uxp Retrieved from https://microsoft.visualstudio.com os.2020 OS official/rs_onecore_dep_uxp 526043ab6050397506b3cdb77e6a43b5ca9a2e9a

Related work items: MSFT-29990377
2020-11-19 23:21:37 +00:00

36 lines
756 B
C++

/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- IHighDpiApi.hpp
Abstract:
- Defines the methods used by the console to support high DPI displays.
Author(s):
- Hernan Gatta (HeGatta) 29-Mar-2017
--*/
#pragma once
namespace Microsoft::Console::Interactivity
{
class IHighDpiApi
{
public:
virtual BOOL SetProcessDpiAwarenessContext() = 0;
[[nodiscard]] virtual HRESULT SetProcessPerMonitorDpiAwareness() = 0;
virtual ~IHighDpiApi() = 0;
protected:
IHighDpiApi() {}
IHighDpiApi(IHighDpiApi const&) = delete;
IHighDpiApi& operator=(IHighDpiApi const&) = delete;
};
inline IHighDpiApi::~IHighDpiApi() {}
}