// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Devices_HumanInterfaceDevice_H #define WINRT_Windows_Devices_HumanInterfaceDevice_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.Devices.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Storage.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.Devices.HumanInterfaceDevice.2.h" namespace winrt::impl { template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControl::Id() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControl)->get_Id(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControl::UsagePage() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControl)->get_UsagePage(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControl::UsageId() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControl)->get_UsageId(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControl::IsActive() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControl)->get_IsActive(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControl::IsActive(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControl)->put_IsActive(value)); } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControl::ControlDescription() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControl)->get_ControlDescription(&value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidBooleanControlDescription{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControlDescription::Id() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControlDescription)->get_Id(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControlDescription::ReportId() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControlDescription)->get_ReportId(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControlDescription::ReportType() const { winrt::Windows::Devices::HumanInterfaceDevice::HidReportType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControlDescription)->get_ReportType(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControlDescription::UsagePage() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControlDescription)->get_UsagePage(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControlDescription::UsageId() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControlDescription)->get_UsageId(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControlDescription::ParentCollections() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControlDescription)->get_ParentCollections(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidBooleanControlDescription2::IsAbsolute() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidBooleanControlDescription2)->get_IsAbsolute(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidCollection::Id() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidCollection)->get_Id(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidCollection::Type() const { winrt::Windows::Devices::HumanInterfaceDevice::HidCollectionType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidCollection)->get_Type(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidCollection::UsagePage() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidCollection)->get_UsagePage(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidCollection::UsageId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidCollection)->get_UsageId(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::VendorId() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->get_VendorId(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::ProductId() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->get_ProductId(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::Version() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->get_Version(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::UsagePage() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->get_UsagePage(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::UsageId() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->get_UsageId(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::GetInputReportAsync() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->GetInputReportAsync(&value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::GetInputReportAsync(uint16_t reportId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->GetInputReportByIdAsync(reportId, &value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::GetFeatureReportAsync() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->GetFeatureReportAsync(&value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::GetFeatureReportAsync(uint16_t reportId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->GetFeatureReportByIdAsync(reportId, &value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::CreateOutputReport() const { void* outputReport{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->CreateOutputReport(&outputReport)); return winrt::Windows::Devices::HumanInterfaceDevice::HidOutputReport{ outputReport, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::CreateOutputReport(uint16_t reportId) const { void* outputReport{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->CreateOutputReportById(reportId, &outputReport)); return winrt::Windows::Devices::HumanInterfaceDevice::HidOutputReport{ outputReport, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::CreateFeatureReport() const { void* featureReport{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->CreateFeatureReport(&featureReport)); return winrt::Windows::Devices::HumanInterfaceDevice::HidFeatureReport{ featureReport, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::CreateFeatureReport(uint16_t reportId) const { void* featureReport{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->CreateFeatureReportById(reportId, &featureReport)); return winrt::Windows::Devices::HumanInterfaceDevice::HidFeatureReport{ featureReport, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::SendOutputReportAsync(winrt::Windows::Devices::HumanInterfaceDevice::HidOutputReport const& outputReport) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->SendOutputReportAsync(*(void**)(&outputReport), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::SendFeatureReportAsync(winrt::Windows::Devices::HumanInterfaceDevice::HidFeatureReport const& featureReport) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->SendFeatureReportAsync(*(void**)(&featureReport), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::GetBooleanControlDescriptions(winrt::Windows::Devices::HumanInterfaceDevice::HidReportType const& reportType, uint16_t usagePage, uint16_t usageId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->GetBooleanControlDescriptions(static_cast(reportType), usagePage, usageId, &value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::GetNumericControlDescriptions(winrt::Windows::Devices::HumanInterfaceDevice::HidReportType const& reportType, uint16_t usagePage, uint16_t usageId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->GetNumericControlDescriptions(static_cast(reportType), usagePage, usageId, &value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::InputReportReceived(winrt::Windows::Foundation::TypedEventHandler const& reportHandler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->add_InputReportReceived(*(void**)(&reportHandler), put_abi(token))); return token; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::InputReportReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& reportHandler) const { return impl::make_event_revoker(this, InputReportReceived(reportHandler)); } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDevice::InputReportReceived(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDevice)->remove_InputReportReceived(impl::bind_in(token)); } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDeviceStatics::GetDeviceSelector(uint16_t usagePage, uint16_t usageId) const { void* selector{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDeviceStatics)->GetDeviceSelector(usagePage, usageId, &selector)); return hstring{ selector, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDeviceStatics::GetDeviceSelector(uint16_t usagePage, uint16_t usageId, uint16_t vendorId, uint16_t productId) const { void* selector{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDeviceStatics)->GetDeviceSelectorVidPid(usagePage, usageId, vendorId, productId, &selector)); return hstring{ selector, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidDeviceStatics::FromIdAsync(param::hstring const& deviceId, winrt::Windows::Storage::FileAccessMode const& accessMode) const { void* hidDevice{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidDeviceStatics)->FromIdAsync(*(void**)(&deviceId), static_cast(accessMode), &hidDevice)); return winrt::Windows::Foundation::IAsyncOperation{ hidDevice, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidFeatureReport::Id() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidFeatureReport)->get_Id(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidFeatureReport::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidFeatureReport)->get_Data(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidFeatureReport::Data(winrt::Windows::Storage::Streams::IBuffer const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidFeatureReport)->put_Data(*(void**)(&value))); } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidFeatureReport::GetBooleanControl(uint16_t usagePage, uint16_t usageId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidFeatureReport)->GetBooleanControl(usagePage, usageId, &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidBooleanControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidFeatureReport::GetBooleanControlByDescription(winrt::Windows::Devices::HumanInterfaceDevice::HidBooleanControlDescription const& controlDescription) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidFeatureReport)->GetBooleanControlByDescription(*(void**)(&controlDescription), &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidBooleanControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidFeatureReport::GetNumericControl(uint16_t usagePage, uint16_t usageId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidFeatureReport)->GetNumericControl(usagePage, usageId, &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidNumericControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidFeatureReport::GetNumericControlByDescription(winrt::Windows::Devices::HumanInterfaceDevice::HidNumericControlDescription const& controlDescription) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidFeatureReport)->GetNumericControlByDescription(*(void**)(&controlDescription), &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidNumericControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidInputReport::Id() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidInputReport)->get_Id(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidInputReport::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidInputReport)->get_Data(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidInputReport::ActivatedBooleanControls() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidInputReport)->get_ActivatedBooleanControls(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidInputReport::TransitionedBooleanControls() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidInputReport)->get_TransitionedBooleanControls(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidInputReport::GetBooleanControl(uint16_t usagePage, uint16_t usageId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidInputReport)->GetBooleanControl(usagePage, usageId, &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidBooleanControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidInputReport::GetBooleanControlByDescription(winrt::Windows::Devices::HumanInterfaceDevice::HidBooleanControlDescription const& controlDescription) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidInputReport)->GetBooleanControlByDescription(*(void**)(&controlDescription), &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidBooleanControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidInputReport::GetNumericControl(uint16_t usagePage, uint16_t usageId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidInputReport)->GetNumericControl(usagePage, usageId, &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidNumericControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidInputReport::GetNumericControlByDescription(winrt::Windows::Devices::HumanInterfaceDevice::HidNumericControlDescription const& controlDescription) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidInputReport)->GetNumericControlByDescription(*(void**)(&controlDescription), &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidNumericControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidInputReportReceivedEventArgs::Report() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidInputReportReceivedEventArgs)->get_Report(&value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidInputReport{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControl::Id() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControl)->get_Id(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControl::IsGrouped() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControl)->get_IsGrouped(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControl::UsagePage() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControl)->get_UsagePage(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControl::UsageId() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControl)->get_UsageId(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControl::Value() const { int64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControl)->get_Value(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControl::Value(int64_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControl)->put_Value(value)); } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControl::ScaledValue() const { int64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControl)->get_ScaledValue(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControl::ScaledValue(int64_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControl)->put_ScaledValue(value)); } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControl::ControlDescription() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControl)->get_ControlDescription(&value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidNumericControlDescription{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::Id() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_Id(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::ReportId() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_ReportId(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::ReportType() const { winrt::Windows::Devices::HumanInterfaceDevice::HidReportType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_ReportType(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::ReportSize() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_ReportSize(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::ReportCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_ReportCount(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::UsagePage() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_UsagePage(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::UsageId() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_UsageId(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::LogicalMinimum() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_LogicalMinimum(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::LogicalMaximum() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_LogicalMaximum(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::PhysicalMinimum() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_PhysicalMinimum(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::PhysicalMaximum() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_PhysicalMaximum(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::UnitExponent() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_UnitExponent(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::Unit() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_Unit(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::IsAbsolute() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_IsAbsolute(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::HasNull() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_HasNull(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidNumericControlDescription::ParentCollections() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidNumericControlDescription)->get_ParentCollections(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidOutputReport::Id() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidOutputReport)->get_Id(&value)); return value; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidOutputReport::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidOutputReport)->get_Data(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidOutputReport::Data(winrt::Windows::Storage::Streams::IBuffer const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidOutputReport)->put_Data(*(void**)(&value))); } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidOutputReport::GetBooleanControl(uint16_t usagePage, uint16_t usageId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidOutputReport)->GetBooleanControl(usagePage, usageId, &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidBooleanControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidOutputReport::GetBooleanControlByDescription(winrt::Windows::Devices::HumanInterfaceDevice::HidBooleanControlDescription const& controlDescription) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidOutputReport)->GetBooleanControlByDescription(*(void**)(&controlDescription), &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidBooleanControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidOutputReport::GetNumericControl(uint16_t usagePage, uint16_t usageId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidOutputReport)->GetNumericControl(usagePage, usageId, &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidNumericControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_HumanInterfaceDevice_IHidOutputReport::GetNumericControlByDescription(winrt::Windows::Devices::HumanInterfaceDevice::HidNumericControlDescription const& controlDescription) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::HumanInterfaceDevice::IHidOutputReport)->GetNumericControlByDescription(*(void**)(&controlDescription), &value)); return winrt::Windows::Devices::HumanInterfaceDevice::HidNumericControl{ value, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsagePage(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsagePage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsageId(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsageId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsActive(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsActive()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsActive(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsActive(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ControlDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ControlDescription()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReportId(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReportId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReportType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReportType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsagePage(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsagePage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsageId(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsageId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ParentCollections(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ParentCollections()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsAbsolute(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAbsolute()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Type(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Type()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsagePage(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsagePage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsageId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsageId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_VendorId(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VendorId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProductId(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProductId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Version(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Version()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsagePage(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsagePage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsageId(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsageId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetInputReportAsync(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetInputReportAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetInputReportByIdAsync(uint16_t reportId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetInputReportAsync(reportId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFeatureReportAsync(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetFeatureReportAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFeatureReportByIdAsync(uint16_t reportId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetFeatureReportAsync(reportId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateOutputReport(void** outputReport) noexcept final try { clear_abi(outputReport); typename D::abi_guard guard(this->shim()); *outputReport = detach_from(this->shim().CreateOutputReport()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateOutputReportById(uint16_t reportId, void** outputReport) noexcept final try { clear_abi(outputReport); typename D::abi_guard guard(this->shim()); *outputReport = detach_from(this->shim().CreateOutputReport(reportId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFeatureReport(void** featureReport) noexcept final try { clear_abi(featureReport); typename D::abi_guard guard(this->shim()); *featureReport = detach_from(this->shim().CreateFeatureReport()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFeatureReportById(uint16_t reportId, void** featureReport) noexcept final try { clear_abi(featureReport); typename D::abi_guard guard(this->shim()); *featureReport = detach_from(this->shim().CreateFeatureReport(reportId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SendOutputReportAsync(void* outputReport, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SendOutputReportAsync(*reinterpret_cast(&outputReport))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SendFeatureReportAsync(void* featureReport, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SendFeatureReportAsync(*reinterpret_cast(&featureReport))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBooleanControlDescriptions(int32_t reportType, uint16_t usagePage, uint16_t usageId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetBooleanControlDescriptions(*reinterpret_cast(&reportType), usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNumericControlDescriptions(int32_t reportType, uint16_t usagePage, uint16_t usageId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetNumericControlDescriptions(*reinterpret_cast(&reportType), usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_InputReportReceived(void* reportHandler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().InputReportReceived(*reinterpret_cast const*>(&reportHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_InputReportReceived(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().InputReportReceived(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDeviceSelector(uint16_t usagePage, uint16_t usageId, void** selector) noexcept final try { clear_abi(selector); typename D::abi_guard guard(this->shim()); *selector = detach_from(this->shim().GetDeviceSelector(usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeviceSelectorVidPid(uint16_t usagePage, uint16_t usageId, uint16_t vendorId, uint16_t productId, void** selector) noexcept final try { clear_abi(selector); typename D::abi_guard guard(this->shim()); *selector = detach_from(this->shim().GetDeviceSelector(usagePage, usageId, vendorId, productId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromIdAsync(void* deviceId, int32_t accessMode, void** hidDevice) noexcept final try { clear_abi(hidDevice); typename D::abi_guard guard(this->shim()); *hidDevice = detach_from>(this->shim().FromIdAsync(*reinterpret_cast(&deviceId), *reinterpret_cast(&accessMode))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Data(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Data(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBooleanControl(uint16_t usagePage, uint16_t usageId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetBooleanControl(usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBooleanControlByDescription(void* controlDescription, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetBooleanControlByDescription(*reinterpret_cast(&controlDescription))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNumericControl(uint16_t usagePage, uint16_t usageId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetNumericControl(usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNumericControlByDescription(void* controlDescription, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetNumericControlByDescription(*reinterpret_cast(&controlDescription))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActivatedBooleanControls(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ActivatedBooleanControls()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TransitionedBooleanControls(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TransitionedBooleanControls()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBooleanControl(uint16_t usagePage, uint16_t usageId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetBooleanControl(usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBooleanControlByDescription(void* controlDescription, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetBooleanControlByDescription(*reinterpret_cast(&controlDescription))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNumericControl(uint16_t usagePage, uint16_t usageId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetNumericControl(usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNumericControlByDescription(void* controlDescription, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetNumericControlByDescription(*reinterpret_cast(&controlDescription))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Report(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Report()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsGrouped(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsGrouped()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsagePage(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsagePage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsageId(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsageId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Value(int64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Value(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Value(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScaledValue(int64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScaledValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ScaledValue(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ScaledValue(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ControlDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ControlDescription()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReportId(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReportId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReportType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReportType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReportSize(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReportSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReportCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReportCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsagePage(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsagePage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UsageId(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UsageId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LogicalMinimum(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LogicalMinimum()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LogicalMaximum(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LogicalMaximum()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PhysicalMinimum(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PhysicalMinimum()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PhysicalMaximum(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PhysicalMaximum()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UnitExponent(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UnitExponent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Unit(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Unit()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAbsolute(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAbsolute()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasNull(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasNull()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ParentCollections(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ParentCollections()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Data(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Data(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBooleanControl(uint16_t usagePage, uint16_t usageId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetBooleanControl(usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBooleanControlByDescription(void* controlDescription, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetBooleanControlByDescription(*reinterpret_cast(&controlDescription))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNumericControl(uint16_t usagePage, uint16_t usageId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetNumericControl(usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNumericControlByDescription(void* controlDescription, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetNumericControlByDescription(*reinterpret_cast(&controlDescription))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Devices::HumanInterfaceDevice { inline auto HidDevice::GetDeviceSelector(uint16_t usagePage, uint16_t usageId) { return impl::call_factory([&](IHidDeviceStatics const& f) { return f.GetDeviceSelector(usagePage, usageId); }); } inline auto HidDevice::GetDeviceSelector(uint16_t usagePage, uint16_t usageId, uint16_t vendorId, uint16_t productId) { return impl::call_factory([&](IHidDeviceStatics const& f) { return f.GetDeviceSelector(usagePage, usageId, vendorId, productId); }); } inline auto HidDevice::FromIdAsync(param::hstring const& deviceId, winrt::Windows::Storage::FileAccessMode const& accessMode) { return impl::call_factory([&](IHidDeviceStatics const& f) { return f.FromIdAsync(deviceId, accessMode); }); } } 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 {}; 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 {}; 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