| 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_System_Inventory_H
#define WINRT_Windows_System_Inventory_H
#include "winrt/base.h"
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.190620.2"), "Mismatched C++/WinRT headers.");
#include "winrt/Windows.System.h"
#include "winrt/impl/Windows.Foundation.2.h"
#include "winrt/impl/Windows.Foundation.Collections.2.h"
#include "winrt/impl/Windows.System.Inventory.2.h"
namespace winrt::impl
{
template <typename D> auto consume_Windows_System_Inventory_IInstalledDesktopApp<D>::Id() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::System::Inventory::IInstalledDesktopApp)->get_Id(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_System_Inventory_IInstalledDesktopApp<D>::DisplayName() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::System::Inventory::IInstalledDesktopApp)->get_DisplayName(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_System_Inventory_IInstalledDesktopApp<D>::Publisher() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::System::Inventory::IInstalledDesktopApp)->get_Publisher(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_System_Inventory_IInstalledDesktopApp<D>::DisplayVersion() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::System::Inventory::IInstalledDesktopApp)->get_DisplayVersion(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_System_Inventory_IInstalledDesktopAppStatics<D>::GetInventoryAsync() const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::System::Inventory::IInstalledDesktopAppStatics)->GetInventoryAsync(&operation));
return Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Windows::System::Inventory::InstalledDesktopApp>>{ operation, take_ownership_from_abi };
}
template <typename D>
struct produce<D, Windows::System::Inventory::IInstalledDesktopApp> : produce_base<D, Windows::System::Inventory::IInstalledDesktopApp>
{
int32_t __stdcall get_Id(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Id());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DisplayName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().DisplayName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Publisher(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Publisher());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DisplayVersion(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().DisplayVersion());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::System::Inventory::IInstalledDesktopAppStatics> : produce_base<D, Windows::System::Inventory::IInstalledDesktopAppStatics>
{
int32_t __stdcall GetInventoryAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Windows::System::Inventory::InstalledDesktopApp>>>(this->shim().GetInventoryAsync());
return 0;
}
catch (...) { return to_hresult(); }
};
}
namespace winrt::Windows::System::Inventory
{
inline auto InstalledDesktopApp::GetInventoryAsync()
{
return impl::call_factory<InstalledDesktopApp, Windows::System::Inventory::IInstalledDesktopAppStatics>([&](auto&& f) { return f.GetInventoryAsync(); });
}
}
namespace std
{
template<> struct hash<winrt::Windows::System::Inventory::IInstalledDesktopApp> : winrt::impl::hash_base<winrt::Windows::System::Inventory::IInstalledDesktopApp> {};
template<> struct hash<winrt::Windows::System::Inventory::IInstalledDesktopAppStatics> : winrt::impl::hash_base<winrt::Windows::System::Inventory::IInstalledDesktopAppStatics> {};
template<> struct hash<winrt::Windows::System::Inventory::InstalledDesktopApp> : winrt::impl::hash_base<winrt::Windows::System::Inventory::InstalledDesktopApp> {};
}
#endif