// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_System_Profile_SystemManufacturers_H #define WINRT_Windows_System_Profile_SystemManufacturers_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.System.Profile.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.System.Profile.SystemManufacturers.2.h" namespace winrt::impl { template auto consume_Windows_System_Profile_SystemManufacturers_IOemSupportInfo::SupportLink() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::IOemSupportInfo)->get_SupportLink(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_IOemSupportInfo::SupportAppLink() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::IOemSupportInfo)->get_SupportAppLink(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_IOemSupportInfo::SupportProvider() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::IOemSupportInfo)->get_SupportProvider(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISmbiosInformationStatics::SerialNumber() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISmbiosInformationStatics)->get_SerialNumber(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISystemSupportDeviceInfo::OperatingSystem() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISystemSupportDeviceInfo)->get_OperatingSystem(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISystemSupportDeviceInfo::FriendlyName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISystemSupportDeviceInfo)->get_FriendlyName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISystemSupportDeviceInfo::SystemManufacturer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISystemSupportDeviceInfo)->get_SystemManufacturer(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISystemSupportDeviceInfo::SystemProductName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISystemSupportDeviceInfo)->get_SystemProductName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISystemSupportDeviceInfo::SystemSku() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISystemSupportDeviceInfo)->get_SystemSku(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISystemSupportDeviceInfo::SystemHardwareVersion() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISystemSupportDeviceInfo)->get_SystemHardwareVersion(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISystemSupportDeviceInfo::SystemFirmwareVersion() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISystemSupportDeviceInfo)->get_SystemFirmwareVersion(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISystemSupportInfoStatics::LocalSystemEdition() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISystemSupportInfoStatics)->get_LocalSystemEdition(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISystemSupportInfoStatics::OemSupportInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISystemSupportInfoStatics)->get_OemSupportInfo(&value)); return winrt::Windows::System::Profile::SystemManufacturers::OemSupportInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_SystemManufacturers_ISystemSupportInfoStatics2::LocalDeviceInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Profile::SystemManufacturers::ISystemSupportInfoStatics2)->get_LocalDeviceInfo(&value)); return winrt::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo{ value, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SupportLink(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportLink()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportAppLink(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportAppLink()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportProvider(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportProvider()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SerialNumber(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SerialNumber()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OperatingSystem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OperatingSystem()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FriendlyName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FriendlyName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemManufacturer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemManufacturer()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemProductName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemProductName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemSku(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemSku()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemHardwareVersion(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemHardwareVersion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemFirmwareVersion(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemFirmwareVersion()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LocalSystemEdition(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalSystemEdition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OemSupportInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OemSupportInfo()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LocalDeviceInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalDeviceInfo()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::System::Profile::SystemManufacturers { inline auto SmbiosInformation::SerialNumber() { return impl::call_factory_cast([](ISmbiosInformationStatics const& f) { return f.SerialNumber(); }); } inline auto SystemSupportInfo::LocalSystemEdition() { return impl::call_factory_cast([](ISystemSupportInfoStatics const& f) { return f.LocalSystemEdition(); }); } inline auto SystemSupportInfo::OemSupportInfo() { return impl::call_factory_cast([](ISystemSupportInfoStatics const& f) { return f.OemSupportInfo(); }); } inline auto SystemSupportInfo::LocalDeviceInfo() { return impl::call_factory_cast([](ISystemSupportInfoStatics2 const& f) { return f.LocalDeviceInfo(); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif