// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Devices_Printers_H #define WINRT_Windows_Devices_Printers_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.Graphics.Printing.2.h" #include "winrt/impl/Windows.Graphics.Printing.PrintTicket.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.Devices.Printers.2.h" namespace winrt::impl { template auto consume_Windows_Devices_Printers_IIppAttributeError::Reason() const { winrt::Windows::Devices::Printers::IppAttributeErrorReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeError)->get_Reason(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Printers_IIppAttributeError::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeError)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_Devices_Printers_IIppAttributeError::GetUnsupportedValues() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeError)->GetUnsupportedValues(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::Kind() const { winrt::Windows::Devices::Printers::IppAttributeValueKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetIntegerArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetIntegerArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetBooleanArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetBooleanArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetEnumArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetEnumArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetOctetStringArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetOctetStringArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetDateTimeArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetDateTimeArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetResolutionArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetResolutionArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetRangeOfIntegerArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetRangeOfIntegerArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetCollectionArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetCollectionArray(&result)); return winrt::Windows::Foundation::Collections::IVector>{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetTextWithLanguageArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetTextWithLanguageArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetNameWithLanguageArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetNameWithLanguageArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetTextWithoutLanguageArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetTextWithoutLanguageArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetNameWithoutLanguageArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetNameWithoutLanguageArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetKeywordArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetKeywordArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetUriArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetUriArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetUriSchemaArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetUriSchemaArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetCharsetArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetCharsetArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetNaturalLanguageArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetNaturalLanguageArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValue::GetMimeMediaTypeArray() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValue)->GetMimeMediaTypeArray(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateUnsupported() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateUnsupported(&result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateUnknown() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateUnknown(&result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateNoValue() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateNoValue(&result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateInteger(int32_t value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateInteger(value, &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateIntegerArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateIntegerArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateBoolean(bool value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateBoolean(value, &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateBooleanArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateBooleanArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateEnum(int32_t value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateEnum(value, &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateEnumArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateEnumArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateOctetString(winrt::Windows::Storage::Streams::IBuffer const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateOctetString(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateOctetStringArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateOctetStringArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateDateTime(winrt::Windows::Foundation::DateTime const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateDateTime(impl::bind_in(value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateDateTimeArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateDateTimeArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateResolution(winrt::Windows::Devices::Printers::IppResolution const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateResolution(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateResolutionArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateResolutionArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateRangeOfInteger(winrt::Windows::Devices::Printers::IppIntegerRange const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateRangeOfInteger(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateRangeOfIntegerArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateRangeOfIntegerArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateCollection(param::iterable> const& memberAttributes) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateCollection(*(void**)(&memberAttributes), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateCollectionArray(param::iterable>> const& memberAttributesArray) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateCollectionArray(*(void**)(&memberAttributesArray), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateTextWithLanguage(winrt::Windows::Devices::Printers::IppTextWithLanguage const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateTextWithLanguage(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateTextWithLanguageArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateTextWithLanguageArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateNameWithLanguage(winrt::Windows::Devices::Printers::IppTextWithLanguage const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateNameWithLanguage(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateNameWithLanguageArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateNameWithLanguageArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateTextWithoutLanguage(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateTextWithoutLanguage(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateTextWithoutLanguageArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateTextWithoutLanguageArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateNameWithoutLanguage(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateNameWithoutLanguage(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateNameWithoutLanguageArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateNameWithoutLanguageArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateKeyword(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateKeyword(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateKeywordArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateKeywordArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateUri(winrt::Windows::Foundation::Uri const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateUri(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateUriArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateUriArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateUriSchema(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateUriSchema(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateUriSchemaArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateUriSchemaArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateCharset(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateCharset(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateCharsetArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateCharsetArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateNaturalLanguage(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateNaturalLanguage(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateNaturalLanguageArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateNaturalLanguageArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateMimeMedia(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateMimeMedia(*(void**)(&value), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppAttributeValueStatics::CreateMimeMediaArray(param::iterable const& values) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppAttributeValueStatics)->CreateMimeMediaArray(*(void**)(&values), &result)); return winrt::Windows::Devices::Printers::IppAttributeValue{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppIntegerRange::Start() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppIntegerRange)->get_Start(&value)); return value; } template auto consume_Windows_Devices_Printers_IIppIntegerRange::End() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppIntegerRange)->get_End(&value)); return value; } template auto consume_Windows_Devices_Printers_IIppIntegerRangeFactory::CreateInstance(int32_t start, int32_t end) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppIntegerRangeFactory)->CreateInstance(start, end, &value)); return winrt::Windows::Devices::Printers::IppIntegerRange{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDevice::PrinterName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice)->get_PrinterName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDevice::PrinterUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice)->get_PrinterUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDevice::GetPrinterAttributesAsBuffer(param::iterable const& attributeNames) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice)->GetPrinterAttributesAsBuffer(*(void**)(&attributeNames), &result)); return winrt::Windows::Storage::Streams::IBuffer{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDevice::GetPrinterAttributes(param::iterable const& attributeNames) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice)->GetPrinterAttributes(*(void**)(&attributeNames), &result)); return winrt::Windows::Foundation::Collections::IMap{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDevice::SetPrinterAttributesFromBuffer(winrt::Windows::Storage::Streams::IBuffer const& printerAttributesBuffer) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice)->SetPrinterAttributesFromBuffer(*(void**)(&printerAttributesBuffer), &result)); return winrt::Windows::Devices::Printers::IppSetAttributesResult{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDevice::SetPrinterAttributes(param::iterable> const& printerAttributes) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice)->SetPrinterAttributes(*(void**)(&printerAttributes), &result)); return winrt::Windows::Devices::Printers::IppSetAttributesResult{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDevice2::GetMaxSupportedPdfSize() const { uint64_t result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice2)->GetMaxSupportedPdfSize(&result)); return result; } template auto consume_Windows_Devices_Printers_IIppPrintDevice2::GetMaxSupportedPdfVersion() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice2)->GetMaxSupportedPdfVersion(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDevice2::IsPdlPassthroughSupported(param::hstring const& pdlContentType) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice2)->IsPdlPassthroughSupported(*(void**)(&pdlContentType), &result)); return result; } template auto consume_Windows_Devices_Printers_IIppPrintDevice2::GetPdlPassthroughProvider() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice2)->GetPdlPassthroughProvider(&result)); return winrt::Windows::Devices::Printers::PdlPassthroughProvider{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDevice3::IsIppFaxOutPrinter() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice3)->get_IsIppFaxOutPrinter(&value)); return value; } template auto consume_Windows_Devices_Printers_IIppPrintDevice4::DeviceKind() const { winrt::Windows::Devices::Printers::IppPrintDeviceKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice4)->get_DeviceKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Printers_IIppPrintDevice4::CanModifyUserDefaultPrintTicket() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice4)->get_CanModifyUserDefaultPrintTicket(&value)); return value; } template auto consume_Windows_Devices_Printers_IIppPrintDevice4::UserDefaultPrintTicket() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice4)->get_UserDefaultPrintTicket(&value)); return winrt::Windows::Graphics::Printing::PrintTicket::WorkflowPrintTicket{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDevice4::UserDefaultPrintTicket(winrt::Windows::Graphics::Printing::PrintTicket::WorkflowPrintTicket const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice4)->put_UserDefaultPrintTicket(*(void**)(&value))); } template auto consume_Windows_Devices_Printers_IIppPrintDevice4::RefreshPrintDeviceCapabilities() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice4)->RefreshPrintDeviceCapabilities()); } template auto consume_Windows_Devices_Printers_IIppPrintDevice4::GetMaxSupportedPdlVersion(param::hstring const& pdlContentType) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDevice4)->GetMaxSupportedPdlVersion(*(void**)(&pdlContentType), &result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDeviceStatics::GetDeviceSelector() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDeviceStatics)->GetDeviceSelector(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDeviceStatics::FromId(param::hstring const& deviceId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDeviceStatics)->FromId(*(void**)(&deviceId), &result)); return winrt::Windows::Devices::Printers::IppPrintDevice{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDeviceStatics::FromPrinterName(param::hstring const& printerName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDeviceStatics)->FromPrinterName(*(void**)(&printerName), &result)); return winrt::Windows::Devices::Printers::IppPrintDevice{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppPrintDeviceStatics::IsIppPrinter(param::hstring const& printerName) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppPrintDeviceStatics)->IsIppPrinter(*(void**)(&printerName), &result)); return result; } template auto consume_Windows_Devices_Printers_IIppResolution::Width() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppResolution)->get_Width(&value)); return value; } template auto consume_Windows_Devices_Printers_IIppResolution::Height() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppResolution)->get_Height(&value)); return value; } template auto consume_Windows_Devices_Printers_IIppResolution::Unit() const { winrt::Windows::Devices::Printers::IppResolutionUnit value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppResolution)->get_Unit(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Printers_IIppResolutionFactory::CreateInstance(int32_t width, int32_t height, winrt::Windows::Devices::Printers::IppResolutionUnit const& unit) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppResolutionFactory)->CreateInstance(width, height, static_cast(unit), &value)); return winrt::Windows::Devices::Printers::IppResolution{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppSetAttributesResult::Succeeded() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppSetAttributesResult)->get_Succeeded(&value)); return value; } template auto consume_Windows_Devices_Printers_IIppSetAttributesResult::AttributeErrors() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppSetAttributesResult)->get_AttributeErrors(&value)); return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppTextWithLanguage::Language() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppTextWithLanguage)->get_Language(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppTextWithLanguage::Value() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppTextWithLanguage)->get_Value(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IIppTextWithLanguageFactory::CreateInstance(param::hstring const& language, param::hstring const& text) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IIppTextWithLanguageFactory)->CreateInstance(*(void**)(&language), *(void**)(&text), &value)); return winrt::Windows::Devices::Printers::IppTextWithLanguage{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IPageConfigurationSettings::OrientationSource() const { winrt::Windows::Devices::Printers::PageConfigurationSource value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPageConfigurationSettings)->get_OrientationSource(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Printers_IPageConfigurationSettings::OrientationSource(winrt::Windows::Devices::Printers::PageConfigurationSource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPageConfigurationSettings)->put_OrientationSource(static_cast(value))); } template auto consume_Windows_Devices_Printers_IPageConfigurationSettings::SizeSource() const { winrt::Windows::Devices::Printers::PageConfigurationSource value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPageConfigurationSettings)->get_SizeSource(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Printers_IPageConfigurationSettings::SizeSource(winrt::Windows::Devices::Printers::PageConfigurationSource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPageConfigurationSettings)->put_SizeSource(static_cast(value))); } template auto consume_Windows_Devices_Printers_IPdlPassthroughProvider::SupportedPdlContentTypes() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPdlPassthroughProvider)->get_SupportedPdlContentTypes(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IPdlPassthroughProvider::StartPrintJobWithTaskOptions(param::hstring const& jobName, param::hstring const& pdlContentType, winrt::Windows::Graphics::Printing::PrintTaskOptions const& taskOptions, winrt::Windows::Devices::Printers::PageConfigurationSettings const& pageConfigurationSettings) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPdlPassthroughProvider)->StartPrintJobWithTaskOptions(*(void**)(&jobName), *(void**)(&pdlContentType), *(void**)(&taskOptions), *(void**)(&pageConfigurationSettings), &result)); return winrt::Windows::Devices::Printers::PdlPassthroughTarget{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IPdlPassthroughProvider::StartPrintJobWithPrintTicket(param::hstring const& jobName, param::hstring const& pdlContentType, winrt::Windows::Storage::Streams::IInputStream const& printTicket, winrt::Windows::Devices::Printers::PageConfigurationSettings const& pageConfigurationSettings) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPdlPassthroughProvider)->StartPrintJobWithPrintTicket(*(void**)(&jobName), *(void**)(&pdlContentType), *(void**)(&printTicket), *(void**)(&pageConfigurationSettings), &result)); return winrt::Windows::Devices::Printers::PdlPassthroughTarget{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IPdlPassthroughTarget::PrintJobId() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPdlPassthroughTarget)->get_PrintJobId(&value)); return value; } template auto consume_Windows_Devices_Printers_IPdlPassthroughTarget::GetOutputStream() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPdlPassthroughTarget)->GetOutputStream(&result)); return winrt::Windows::Storage::Streams::IOutputStream{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IPdlPassthroughTarget::Submit() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPdlPassthroughTarget)->Submit()); } template auto consume_Windows_Devices_Printers_IPrint3DDevice::PrintSchema() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPrint3DDevice)->get_PrintSchema(&value)); return winrt::Windows::Devices::Printers::PrintSchema{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IPrint3DDeviceStatics::FromIdAsync(param::hstring const& deviceId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPrint3DDeviceStatics)->FromIdAsync(*(void**)(&deviceId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IPrint3DDeviceStatics::GetDeviceSelector() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPrint3DDeviceStatics)->GetDeviceSelector(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IPrintSchema::GetDefaultPrintTicketAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPrintSchema)->GetDefaultPrintTicketAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IPrintSchema::GetCapabilitiesAsync(winrt::Windows::Storage::Streams::IRandomAccessStreamWithContentType const& constrainTicket) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPrintSchema)->GetCapabilitiesAsync(*(void**)(&constrainTicket), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IPrintSchema::MergeAndValidateWithDefaultPrintTicketAsync(winrt::Windows::Storage::Streams::IRandomAccessStreamWithContentType const& deltaTicket) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IPrintSchema)->MergeAndValidateWithDefaultPrintTicketAsync(*(void**)(&deltaTicket), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::PrinterName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->get_PrinterName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::PrinterName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->put_PrinterName(*(void**)(&value))); } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::OutputFileExtensions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->get_OutputFileExtensions(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::SupportedInputFormats() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->get_SupportedInputFormats(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::PrintDeviceCapabilitiesPackageRelativeFilePath() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->get_PrintDeviceCapabilitiesPackageRelativeFilePath(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::PrintDeviceCapabilitiesPackageRelativeFilePath(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->put_PrintDeviceCapabilitiesPackageRelativeFilePath(*(void**)(&value))); } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::PrintDeviceResourcesPackageRelativeFilePath() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->get_PrintDeviceResourcesPackageRelativeFilePath(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::PrintDeviceResourcesPackageRelativeFilePath(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->put_PrintDeviceResourcesPackageRelativeFilePath(*(void**)(&value))); } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::PreferredInputFormat() const { winrt::Windows::Devices::Printers::VirtualPrinterPreferredInputFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->get_PreferredInputFormat(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::PreferredInputFormat(winrt::Windows::Devices::Printers::VirtualPrinterPreferredInputFormat const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->put_PreferredInputFormat(static_cast(value))); } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::PrinterUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->get_PrinterUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::PrinterUri(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->put_PrinterUri(*(void**)(&value))); } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::EntryPoint() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->get_EntryPoint(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationParameters::EntryPoint(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationParameters)->put_EntryPoint(*(void**)(&value))); } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationResult::Status() const { winrt::Windows::Devices::Printers::VirtualPrinterInstallationStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Printers_IVirtualPrinterInstallationResult::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterInstallationResult)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_Devices_Printers_IVirtualPrinterManagerStatics::InstallVirtualPrinterAsync(winrt::Windows::Devices::Printers::VirtualPrinterInstallationParameters const& parameters) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterManagerStatics)->InstallVirtualPrinterAsync(*(void**)(¶meters), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterManagerStatics::InstallVirtualPrinterAsync(winrt::Windows::Devices::Printers::VirtualPrinterInstallationParameters const& parameters, param::hstring const& appPackageFamilyName) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterManagerStatics)->InstallVirtualPrinterAsync2(*(void**)(¶meters), *(void**)(&appPackageFamilyName), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterManagerStatics::InstallVirtualPrinterForAllUsersAsync(winrt::Windows::Devices::Printers::VirtualPrinterInstallationParameters const& parameters) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterManagerStatics)->InstallVirtualPrinterForAllUsersAsync(*(void**)(¶meters), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterManagerStatics::InstallVirtualPrinterForAllUsersAsync(winrt::Windows::Devices::Printers::VirtualPrinterInstallationParameters const& parameters, param::hstring const& appPackageFamilyName) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterManagerStatics)->InstallVirtualPrinterForAllUsersAsync2(*(void**)(¶meters), *(void**)(&appPackageFamilyName), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterManagerStatics::FindAllVirtualPrinters() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterManagerStatics)->FindAllVirtualPrinters(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterManagerStatics::FindAllVirtualPrinters(param::hstring const& appPackageFamilyName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterManagerStatics)->FindAllVirtualPrinters2(*(void**)(&appPackageFamilyName), &result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterManagerStatics::RemoveVirtualPrinterAsync(param::hstring const& printerName) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterManagerStatics)->RemoveVirtualPrinterAsync(*(void**)(&printerName), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterManagerStatics::RemoveVirtualPrinterForAllUsersAsync(param::hstring const& printerName) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterManagerStatics)->RemoveVirtualPrinterForAllUsersAsync(*(void**)(&printerName), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterSupportedFormat::ContentType() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterSupportedFormat)->get_ContentType(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterSupportedFormat::ContentType(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterSupportedFormat)->put_ContentType(*(void**)(&value))); } template auto consume_Windows_Devices_Printers_IVirtualPrinterSupportedFormat::MaxSupportedVersion() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterSupportedFormat)->get_MaxSupportedVersion(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Printers_IVirtualPrinterSupportedFormat::MaxSupportedVersion(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterSupportedFormat)->put_MaxSupportedVersion(*(void**)(&value))); } template auto consume_Windows_Devices_Printers_IVirtualPrinterSupportedFormatFactory::CreateInstance(param::hstring const& contentType, param::hstring const& maxSupportedVersion) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Printers::IVirtualPrinterSupportedFormatFactory)->CreateInstance(*(void**)(&contentType), *(void**)(&maxSupportedVersion), &value)); return winrt::Windows::Devices::Printers::VirtualPrinterSupportedFormat{ value, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Reason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Reason()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtendedError(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtendedError()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetUnsupportedValues(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetUnsupportedValues()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIntegerArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetIntegerArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBooleanArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetBooleanArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetEnumArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetEnumArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetOctetStringArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetOctetStringArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDateTimeArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDateTimeArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetResolutionArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetResolutionArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRangeOfIntegerArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetRangeOfIntegerArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCollectionArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().GetCollectionArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTextWithLanguageArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetTextWithLanguageArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNameWithLanguageArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetNameWithLanguageArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTextWithoutLanguageArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetTextWithoutLanguageArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNameWithoutLanguageArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetNameWithoutLanguageArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetKeywordArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetKeywordArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetUriArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetUriArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetUriSchemaArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetUriSchemaArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCharsetArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetCharsetArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNaturalLanguageArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetNaturalLanguageArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMimeMediaTypeArray(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetMimeMediaTypeArray()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateUnsupported(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateUnsupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateUnknown(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateUnknown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateNoValue(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateNoValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateInteger(int32_t value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateInteger(value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateIntegerArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateIntegerArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateBoolean(bool value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateBoolean(value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateBooleanArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateBooleanArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateEnum(int32_t value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateEnum(value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateEnumArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateEnumArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateOctetString(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateOctetString(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateOctetStringArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateOctetStringArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateDateTime(int64_t value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateDateTime(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateDateTimeArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateDateTimeArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateResolution(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateResolution(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateResolutionArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateResolutionArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateRangeOfInteger(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateRangeOfInteger(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateRangeOfIntegerArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateRangeOfIntegerArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateCollection(void* memberAttributes, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateCollection(*reinterpret_cast> const*>(&memberAttributes))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateCollectionArray(void* memberAttributesArray, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateCollectionArray(*reinterpret_cast>> const*>(&memberAttributesArray))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTextWithLanguage(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTextWithLanguage(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTextWithLanguageArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTextWithLanguageArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateNameWithLanguage(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateNameWithLanguage(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateNameWithLanguageArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateNameWithLanguageArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTextWithoutLanguage(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTextWithoutLanguage(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTextWithoutLanguageArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTextWithoutLanguageArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateNameWithoutLanguage(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateNameWithoutLanguage(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateNameWithoutLanguageArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateNameWithoutLanguageArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateKeyword(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateKeyword(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateKeywordArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateKeywordArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateUri(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateUri(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateUriArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateUriArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateUriSchema(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateUriSchema(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateUriSchemaArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateUriSchemaArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateCharset(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateCharset(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateCharsetArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateCharsetArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateNaturalLanguage(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateNaturalLanguage(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateNaturalLanguageArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateNaturalLanguageArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateMimeMedia(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateMimeMedia(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateMimeMediaArray(void* values, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateMimeMediaArray(*reinterpret_cast const*>(&values))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Start(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Start()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_End(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().End()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(int32_t start, int32_t end, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(start, end)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PrinterName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrinterName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PrinterUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrinterUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPrinterAttributesAsBuffer(void* attributeNames, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetPrinterAttributesAsBuffer(*reinterpret_cast const*>(&attributeNames))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPrinterAttributes(void* attributeNames, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetPrinterAttributes(*reinterpret_cast const*>(&attributeNames))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPrinterAttributesFromBuffer(void* printerAttributesBuffer, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetPrinterAttributesFromBuffer(*reinterpret_cast(&printerAttributesBuffer))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPrinterAttributes(void* printerAttributes, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetPrinterAttributes(*reinterpret_cast> const*>(&printerAttributes))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetMaxSupportedPdfSize(uint64_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetMaxSupportedPdfSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMaxSupportedPdfVersion(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetMaxSupportedPdfVersion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsPdlPassthroughSupported(void* pdlContentType, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsPdlPassthroughSupported(*reinterpret_cast(&pdlContentType))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPdlPassthroughProvider(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetPdlPassthroughProvider()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsIppFaxOutPrinter(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsIppFaxOutPrinter()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DeviceKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeviceKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanModifyUserDefaultPrintTicket(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanModifyUserDefaultPrintTicket()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserDefaultPrintTicket(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserDefaultPrintTicket()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UserDefaultPrintTicket(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UserDefaultPrintTicket(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RefreshPrintDeviceCapabilities() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RefreshPrintDeviceCapabilities(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMaxSupportedPdlVersion(void* pdlContentType, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetMaxSupportedPdlVersion(*reinterpret_cast(&pdlContentType))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDeviceSelector(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeviceSelector()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromId(void* deviceId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromId(*reinterpret_cast(&deviceId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromPrinterName(void* printerName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromPrinterName(*reinterpret_cast(&printerName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsIppPrinter(void* printerName, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsIppPrinter(*reinterpret_cast(&printerName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Width(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Width()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Height(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Height()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Unit(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Unit()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(int32_t width, int32_t height, int32_t unit, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(width, height, *reinterpret_cast(&unit))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Succeeded(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Succeeded()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AttributeErrors(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AttributeErrors()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Language(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Language()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Value(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* language, void* text, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&language), *reinterpret_cast(&text))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OrientationSource(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OrientationSource()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OrientationSource(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OrientationSource(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SizeSource(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SizeSource()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SizeSource(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SizeSource(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SupportedPdlContentTypes(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedPdlContentTypes()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPrintJobWithTaskOptions(void* jobName, void* pdlContentType, void* taskOptions, void* pageConfigurationSettings, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().StartPrintJobWithTaskOptions(*reinterpret_cast(&jobName), *reinterpret_cast(&pdlContentType), *reinterpret_cast(&taskOptions), *reinterpret_cast(&pageConfigurationSettings))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPrintJobWithPrintTicket(void* jobName, void* pdlContentType, void* printTicket, void* pageConfigurationSettings, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().StartPrintJobWithPrintTicket(*reinterpret_cast(&jobName), *reinterpret_cast(&pdlContentType), *reinterpret_cast(&printTicket), *reinterpret_cast(&pageConfigurationSettings))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PrintJobId(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrintJobId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetOutputStream(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetOutputStream()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Submit() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Submit(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PrintSchema(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrintSchema()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FromIdAsync(void* deviceId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeviceSelector(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeviceSelector()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDefaultPrintTicketAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetDefaultPrintTicketAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCapabilitiesAsync(void* constrainTicket, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetCapabilitiesAsync(*reinterpret_cast(&constrainTicket))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MergeAndValidateWithDefaultPrintTicketAsync(void* deltaTicket, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().MergeAndValidateWithDefaultPrintTicketAsync(*reinterpret_cast(&deltaTicket))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PrinterName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrinterName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PrinterName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PrinterName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OutputFileExtensions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().OutputFileExtensions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedInputFormats(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedInputFormats()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PrintDeviceCapabilitiesPackageRelativeFilePath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrintDeviceCapabilitiesPackageRelativeFilePath()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PrintDeviceCapabilitiesPackageRelativeFilePath(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PrintDeviceCapabilitiesPackageRelativeFilePath(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PrintDeviceResourcesPackageRelativeFilePath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrintDeviceResourcesPackageRelativeFilePath()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PrintDeviceResourcesPackageRelativeFilePath(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PrintDeviceResourcesPackageRelativeFilePath(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PreferredInputFormat(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreferredInputFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PreferredInputFormat(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PreferredInputFormat(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PrinterUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrinterUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PrinterUri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PrinterUri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EntryPoint(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EntryPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_EntryPoint(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EntryPoint(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtendedError(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtendedError()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall InstallVirtualPrinterAsync(void* parameters, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().InstallVirtualPrinterAsync(*reinterpret_cast(¶meters))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InstallVirtualPrinterAsync2(void* parameters, void* appPackageFamilyName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().InstallVirtualPrinterAsync(*reinterpret_cast(¶meters), *reinterpret_cast(&appPackageFamilyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InstallVirtualPrinterForAllUsersAsync(void* parameters, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().InstallVirtualPrinterForAllUsersAsync(*reinterpret_cast(¶meters))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InstallVirtualPrinterForAllUsersAsync2(void* parameters, void* appPackageFamilyName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().InstallVirtualPrinterForAllUsersAsync(*reinterpret_cast(¶meters), *reinterpret_cast(&appPackageFamilyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAllVirtualPrinters(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindAllVirtualPrinters()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAllVirtualPrinters2(void* appPackageFamilyName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindAllVirtualPrinters(*reinterpret_cast(&appPackageFamilyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveVirtualPrinterAsync(void* printerName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RemoveVirtualPrinterAsync(*reinterpret_cast(&printerName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveVirtualPrinterForAllUsersAsync(void* printerName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RemoveVirtualPrinterForAllUsersAsync(*reinterpret_cast(&printerName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContentType(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContentType(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContentType(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxSupportedVersion(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxSupportedVersion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxSupportedVersion(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxSupportedVersion(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* contentType, void* maxSupportedVersion, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&contentType), *reinterpret_cast(&maxSupportedVersion))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Devices::Printers { inline auto IppAttributeValue::CreateUnsupported() { return impl::call_factory_cast([](IIppAttributeValueStatics const& f) { return f.CreateUnsupported(); }); } inline auto IppAttributeValue::CreateUnknown() { return impl::call_factory_cast([](IIppAttributeValueStatics const& f) { return f.CreateUnknown(); }); } inline auto IppAttributeValue::CreateNoValue() { return impl::call_factory_cast([](IIppAttributeValueStatics const& f) { return f.CreateNoValue(); }); } inline auto IppAttributeValue::CreateInteger(int32_t value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateInteger(value); }); } inline auto IppAttributeValue::CreateIntegerArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateIntegerArray(values); }); } inline auto IppAttributeValue::CreateBoolean(bool value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateBoolean(value); }); } inline auto IppAttributeValue::CreateBooleanArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateBooleanArray(values); }); } inline auto IppAttributeValue::CreateEnum(int32_t value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateEnum(value); }); } inline auto IppAttributeValue::CreateEnumArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateEnumArray(values); }); } inline auto IppAttributeValue::CreateOctetString(winrt::Windows::Storage::Streams::IBuffer const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateOctetString(value); }); } inline auto IppAttributeValue::CreateOctetStringArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateOctetStringArray(values); }); } inline auto IppAttributeValue::CreateDateTime(winrt::Windows::Foundation::DateTime const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateDateTime(value); }); } inline auto IppAttributeValue::CreateDateTimeArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateDateTimeArray(values); }); } inline auto IppAttributeValue::CreateResolution(winrt::Windows::Devices::Printers::IppResolution const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateResolution(value); }); } inline auto IppAttributeValue::CreateResolutionArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateResolutionArray(values); }); } inline auto IppAttributeValue::CreateRangeOfInteger(winrt::Windows::Devices::Printers::IppIntegerRange const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateRangeOfInteger(value); }); } inline auto IppAttributeValue::CreateRangeOfIntegerArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateRangeOfIntegerArray(values); }); } inline auto IppAttributeValue::CreateCollection(param::iterable> const& memberAttributes) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateCollection(memberAttributes); }); } inline auto IppAttributeValue::CreateCollectionArray(param::iterable>> const& memberAttributesArray) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateCollectionArray(memberAttributesArray); }); } inline auto IppAttributeValue::CreateTextWithLanguage(winrt::Windows::Devices::Printers::IppTextWithLanguage const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateTextWithLanguage(value); }); } inline auto IppAttributeValue::CreateTextWithLanguageArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateTextWithLanguageArray(values); }); } inline auto IppAttributeValue::CreateNameWithLanguage(winrt::Windows::Devices::Printers::IppTextWithLanguage const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateNameWithLanguage(value); }); } inline auto IppAttributeValue::CreateNameWithLanguageArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateNameWithLanguageArray(values); }); } inline auto IppAttributeValue::CreateTextWithoutLanguage(param::hstring const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateTextWithoutLanguage(value); }); } inline auto IppAttributeValue::CreateTextWithoutLanguageArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateTextWithoutLanguageArray(values); }); } inline auto IppAttributeValue::CreateNameWithoutLanguage(param::hstring const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateNameWithoutLanguage(value); }); } inline auto IppAttributeValue::CreateNameWithoutLanguageArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateNameWithoutLanguageArray(values); }); } inline auto IppAttributeValue::CreateKeyword(param::hstring const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateKeyword(value); }); } inline auto IppAttributeValue::CreateKeywordArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateKeywordArray(values); }); } inline auto IppAttributeValue::CreateUri(winrt::Windows::Foundation::Uri const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateUri(value); }); } inline auto IppAttributeValue::CreateUriArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateUriArray(values); }); } inline auto IppAttributeValue::CreateUriSchema(param::hstring const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateUriSchema(value); }); } inline auto IppAttributeValue::CreateUriSchemaArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateUriSchemaArray(values); }); } inline auto IppAttributeValue::CreateCharset(param::hstring const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateCharset(value); }); } inline auto IppAttributeValue::CreateCharsetArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateCharsetArray(values); }); } inline auto IppAttributeValue::CreateNaturalLanguage(param::hstring const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateNaturalLanguage(value); }); } inline auto IppAttributeValue::CreateNaturalLanguageArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateNaturalLanguageArray(values); }); } inline auto IppAttributeValue::CreateMimeMedia(param::hstring const& value) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateMimeMedia(value); }); } inline auto IppAttributeValue::CreateMimeMediaArray(param::iterable const& values) { return impl::call_factory([&](IIppAttributeValueStatics const& f) { return f.CreateMimeMediaArray(values); }); } inline IppIntegerRange::IppIntegerRange(int32_t start, int32_t end) : IppIntegerRange(impl::call_factory([&](IIppIntegerRangeFactory const& f) { return f.CreateInstance(start, end); })) { } inline auto IppPrintDevice::GetDeviceSelector() { return impl::call_factory_cast([](IIppPrintDeviceStatics const& f) { return f.GetDeviceSelector(); }); } inline auto IppPrintDevice::FromId(param::hstring const& deviceId) { return impl::call_factory([&](IIppPrintDeviceStatics const& f) { return f.FromId(deviceId); }); } inline auto IppPrintDevice::FromPrinterName(param::hstring const& printerName) { return impl::call_factory([&](IIppPrintDeviceStatics const& f) { return f.FromPrinterName(printerName); }); } inline auto IppPrintDevice::IsIppPrinter(param::hstring const& printerName) { return impl::call_factory([&](IIppPrintDeviceStatics const& f) { return f.IsIppPrinter(printerName); }); } inline IppResolution::IppResolution(int32_t width, int32_t height, winrt::Windows::Devices::Printers::IppResolutionUnit const& unit) : IppResolution(impl::call_factory([&](IIppResolutionFactory const& f) { return f.CreateInstance(width, height, unit); })) { } inline IppTextWithLanguage::IppTextWithLanguage(param::hstring const& language, param::hstring const& text) : IppTextWithLanguage(impl::call_factory([&](IIppTextWithLanguageFactory const& f) { return f.CreateInstance(language, text); })) { } inline PageConfigurationSettings::PageConfigurationSettings() : PageConfigurationSettings(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Print3DDevice::FromIdAsync(param::hstring const& deviceId) { return impl::call_factory([&](IPrint3DDeviceStatics const& f) { return f.FromIdAsync(deviceId); }); } inline auto Print3DDevice::GetDeviceSelector() { return impl::call_factory_cast([](IPrint3DDeviceStatics const& f) { return f.GetDeviceSelector(); }); } inline VirtualPrinterInstallationParameters::VirtualPrinterInstallationParameters() : VirtualPrinterInstallationParameters(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto VirtualPrinterManager::InstallVirtualPrinterAsync(winrt::Windows::Devices::Printers::VirtualPrinterInstallationParameters const& parameters) { return impl::call_factory([&](IVirtualPrinterManagerStatics const& f) { return f.InstallVirtualPrinterAsync(parameters); }); } inline auto VirtualPrinterManager::InstallVirtualPrinterAsync(winrt::Windows::Devices::Printers::VirtualPrinterInstallationParameters const& parameters, param::hstring const& appPackageFamilyName) { return impl::call_factory([&](IVirtualPrinterManagerStatics const& f) { return f.InstallVirtualPrinterAsync(parameters, appPackageFamilyName); }); } inline auto VirtualPrinterManager::InstallVirtualPrinterForAllUsersAsync(winrt::Windows::Devices::Printers::VirtualPrinterInstallationParameters const& parameters) { return impl::call_factory([&](IVirtualPrinterManagerStatics const& f) { return f.InstallVirtualPrinterForAllUsersAsync(parameters); }); } inline auto VirtualPrinterManager::InstallVirtualPrinterForAllUsersAsync(winrt::Windows::Devices::Printers::VirtualPrinterInstallationParameters const& parameters, param::hstring const& appPackageFamilyName) { return impl::call_factory([&](IVirtualPrinterManagerStatics const& f) { return f.InstallVirtualPrinterForAllUsersAsync(parameters, appPackageFamilyName); }); } inline auto VirtualPrinterManager::FindAllVirtualPrinters() { return impl::call_factory_cast(*)(IVirtualPrinterManagerStatics const&), VirtualPrinterManager, IVirtualPrinterManagerStatics>([](IVirtualPrinterManagerStatics const& f) { return f.FindAllVirtualPrinters(); }); } inline auto VirtualPrinterManager::FindAllVirtualPrinters(param::hstring const& appPackageFamilyName) { return impl::call_factory([&](IVirtualPrinterManagerStatics const& f) { return f.FindAllVirtualPrinters(appPackageFamilyName); }); } inline auto VirtualPrinterManager::RemoveVirtualPrinterAsync(param::hstring const& printerName) { return impl::call_factory([&](IVirtualPrinterManagerStatics const& f) { return f.RemoveVirtualPrinterAsync(printerName); }); } inline auto VirtualPrinterManager::RemoveVirtualPrinterForAllUsersAsync(param::hstring const& printerName) { return impl::call_factory([&](IVirtualPrinterManagerStatics const& f) { return f.RemoveVirtualPrinterForAllUsersAsync(printerName); }); } inline VirtualPrinterSupportedFormat::VirtualPrinterSupportedFormat(param::hstring const& contentType, param::hstring const& maxSupportedVersion) : VirtualPrinterSupportedFormat(impl::call_factory([&](IVirtualPrinterSupportedFormatFactory const& f) { return f.CreateInstance(contentType, maxSupportedVersion); })) { } } 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 {}; 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