1 // Copyright (c) 2013 Google Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 #include <wrl/wrappers/corewrappers.h>
8 #include <windows.graphics.display.h>
10 using namespace Microsoft::WRL;
11 using namespace Microsoft::WRL::Wrappers;
12 using namespace ABI::Windows::Foundation;
13 using namespace ABI::Windows::Graphics::Display;
15 bool TryToUseSomeWinRT() {
16 ComPtr<IDisplayPropertiesStatics> dp;
17 HStringReference s(RuntimeClass_Windows_Graphics_Display_DisplayProperties);
18 HRESULT hr = GetActivationFactory(s.Get(), dp.GetAddressOf());
21 if (SUCCEEDED(dp->get_LogicalDpi(&dpi))) {
28 BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved) {