-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApiCheck.cpp
43 lines (29 loc) · 1.1 KB
/
ApiCheck.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "ApiCheck.h"
#include <Windows.UI.Composition.h>
#include <Windows.UI.Xaml.Automation.h>
#include <Windows.UI.Xaml.Controls.h>
#include <Windows.UI.Xaml.Hosting.h>
#include <Windows.UI.Xaml.Media.h>
#include <Windows.UI.ViewManagement.h>
namespace ApiCheck {
namespace Details { namespace Strings {
extern const wchar_t PreviewKeyDown[] = L"PreviewKeyDown";
}} // namespace Details::Strings
bool ArePreviewKeyEventsAvailable() noexcept
{
return IsPropertyPresent<RuntimeClass_Windows_UI_Xaml_UIElement, Details::Strings::PreviewKeyDown, WindowsVersion::RS3>();
}
bool IsCompositionLinearGradientBrushAvailable() noexcept
{
return IsTypePresent<RuntimeClass_Windows_UI_Composition_CompositionLinearGradientBrush, WindowsVersion::RS3>();
}
bool IsRevealBrushAvailable() noexcept
{
return IsTypePresent<RuntimeClass_Windows_UI_Xaml_Media_RevealBrush, WindowsVersion::RS3>();
}
bool IsStatusBarAvailable() noexcept
{
return IsTypePresent<RuntimeClass_Windows_UI_ViewManagement_StatusBar, WindowsVersion::None>();
}
// ------------------------------------------------------------
} // namespace ApiCheck