| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/cppwinrt/winrt/ |
Upload File : |
// C++/WinRT v2.0.190620.2
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef WINRT_Windows_UI_Input_Preview_H
#define WINRT_Windows_UI_Input_Preview_H
#include "winrt/base.h"
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.190620.2"), "Mismatched C++/WinRT headers.");
#include "winrt/Windows.UI.Input.h"
#include "winrt/impl/Windows.UI.Input.2.h"
#include "winrt/impl/Windows.UI.WindowManagement.2.h"
#include "winrt/impl/Windows.UI.Input.Preview.2.h"
namespace winrt::impl
{
template <typename D> auto consume_Windows_UI_Input_Preview_IInputActivationListenerPreviewStatics<D>::CreateForApplicationWindow(Windows::UI::WindowManagement::AppWindow const& window) const
{
void* result{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::Input::Preview::IInputActivationListenerPreviewStatics)->CreateForApplicationWindow(*(void**)(&window), &result));
return Windows::UI::Input::InputActivationListener{ result, take_ownership_from_abi };
}
template <typename D>
struct produce<D, Windows::UI::Input::Preview::IInputActivationListenerPreviewStatics> : produce_base<D, Windows::UI::Input::Preview::IInputActivationListenerPreviewStatics>
{
int32_t __stdcall CreateForApplicationWindow(void* window, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<Windows::UI::Input::InputActivationListener>(this->shim().CreateForApplicationWindow(*reinterpret_cast<Windows::UI::WindowManagement::AppWindow const*>(&window)));
return 0;
}
catch (...) { return to_hresult(); }
};
}
namespace winrt::Windows::UI::Input::Preview
{
inline auto InputActivationListenerPreview::CreateForApplicationWindow(Windows::UI::WindowManagement::AppWindow const& window)
{
return impl::call_factory<InputActivationListenerPreview, Windows::UI::Input::Preview::IInputActivationListenerPreviewStatics>([&](auto&& f) { return f.CreateForApplicationWindow(window); });
}
}
namespace std
{
template<> struct hash<winrt::Windows::UI::Input::Preview::IInputActivationListenerPreviewStatics> : winrt::impl::hash_base<winrt::Windows::UI::Input::Preview::IInputActivationListenerPreviewStatics> {};
template<> struct hash<winrt::Windows::UI::Input::Preview::InputActivationListenerPreview> : winrt::impl::hash_base<winrt::Windows::UI::Input::Preview::InputActivationListenerPreview> {};
}
#endif