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