summaryrefslogtreecommitdiff
path: root/deps/gyp/test/win/enable-winrt/dllmain.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/win/enable-winrt/dllmain.cc')
-rw-r--r--deps/gyp/test/win/enable-winrt/dllmain.cc30
1 files changed, 0 insertions, 30 deletions
diff --git a/deps/gyp/test/win/enable-winrt/dllmain.cc b/deps/gyp/test/win/enable-winrt/dllmain.cc
deleted file mode 100644
index dedd83c3f6..0000000000
--- a/deps/gyp/test/win/enable-winrt/dllmain.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2013 Google Inc. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <windows.h>
-#include <wrl.h>
-#include <wrl/wrappers/corewrappers.h>
-#include <windows.graphics.display.h>
-
-using namespace Microsoft::WRL;
-using namespace Microsoft::WRL::Wrappers;
-using namespace ABI::Windows::Foundation;
-using namespace ABI::Windows::Graphics::Display;
-
-bool TryToUseSomeWinRT() {
- ComPtr<IDisplayPropertiesStatics> dp;
- HStringReference s(RuntimeClass_Windows_Graphics_Display_DisplayProperties);
- HRESULT hr = GetActivationFactory(s.Get(), dp.GetAddressOf());
- if (SUCCEEDED(hr)) {
- float dpi = 96.0f;
- if (SUCCEEDED(dp->get_LogicalDpi(&dpi))) {
- return true;
- }
- }
- return false;
-}
-
-BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved) {
- return TRUE;
-}