Plasma Engine  2.0
Loading...
Searching...
No Matches
WinRTUtils.h
1#pragma once
2
3#include <Foundation/Basics.h>
4
5#if PL_DISABLED(PL_PLATFORM_WINDOWS)
6# error "WinRT util header should only be included in Windows builds!"
7#endif
8
9// For 10.0.10240, there are circular includes in some headers, fix by including first:
10#include <corecrt.h>
11
12#if PL_ENABLED(PL_PLATFORM_WINDOWS_UWP)
13// All WRL
14# include <wrl.h>
15#else
16// Only include a subset that is C++ conformant
17# include <wrl/def.h>
18# include <wrl/ftm.h>
19# include <wrl/internal.h>
20# include <wrl/module.h>
21# include <wrl/wrappers/corewrappers.h>
22#endif
23
24#include <windows.devices.enumeration.h>
25#include <windows.foundation.collections.h>
26#include <windows.foundation.h>
27
28using namespace Microsoft::WRL;
29using namespace Microsoft::WRL::Wrappers;
30
31// warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
32PL_MSVC_ANALYSIS_WARNING_DISABLE(4530);