// C++/WinRT v3.0.260818.1

// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) Microsoft Corporation
//
// Generated using .winmd files from https://github.com/microsoft/windows-rs
//

#pragma once
#ifndef WINRT_Windows_Media_AppRecording_H
#define WINRT_Windows_Media_AppRecording_H
#ifndef WINRT_IMPORT_MODULE

#ifndef WINRT_IMPL_BUILD_MODULE
#include "winrt/base.h"
static_assert(winrt::check_version(CPPWINRT_VERSION, "3.0.260818.1"), "Mismatched C++/WinRT headers.");
#define CPPWINRT_VERSION "3.0.260818.1"
#include "winrt/Windows.Media.h"
#include "winrt/impl/Windows.Foundation.2.h"
#include "winrt/impl/Windows.Foundation.Collections.2.h"
#include "winrt/impl/Windows.Storage.2.h"
#include "winrt/impl/Windows.Media.AppRecording.2.h"
#endif // WINRT_IMPL_BUILD_MODULE
WINRT_EXPORT namespace winrt::impl
{
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingManager<D>::GetStatus() const
    {
        void* result{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingManager, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingManager>::GetStatus, &result);
        return winrt::Windows::Media::AppRecording::AppRecordingStatus{ result, take_ownership_from_abi };
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingManager<D>::StartRecordingToFileAsync(winrt::Windows::Storage::StorageFile const& file) const
    {
        void* operation{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingManager, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingManager>::StartRecordingToFileAsync, *(void**)(&file), &operation);
        return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Media::AppRecording::AppRecordingResult>{ operation, take_ownership_from_abi };
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingManager<D>::RecordTimeSpanToFileAsync(winrt::Windows::Foundation::DateTime const& startTime, winrt::Windows::Foundation::TimeSpan const& duration, winrt::Windows::Storage::StorageFile const& file) const
    {
        void* operation{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingManager, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingManager>::RecordTimeSpanToFileAsync, impl::bind_in(startTime), impl::bind_in(duration), *(void**)(&file), &operation);
        return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Media::AppRecording::AppRecordingResult>{ operation, take_ownership_from_abi };
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingManager<D>::SupportedScreenshotMediaEncodingSubtypes() const
    {
        void* value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingManager, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingManager>::get_SupportedScreenshotMediaEncodingSubtypes, &value);
        return winrt::Windows::Foundation::Collections::IVectorView<hstring>{ value, take_ownership_from_abi };
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingManager<D>::SaveScreenshotToFilesAsync(winrt::Windows::Storage::StorageFolder const& folder, param::hstring const& filenamePrefix, winrt::Windows::Media::AppRecording::AppRecordingSaveScreenshotOption const& option, param::async_iterable<hstring> const& requestedFormats) const
    {
        void* operation{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingManager, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingManager>::SaveScreenshotToFilesAsync, *(void**)(&folder), *(void**)(&filenamePrefix), static_cast<std::int32_t>(option), *(void**)(&requestedFormats), &operation);
        return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Media::AppRecording::AppRecordingSaveScreenshotResult>{ operation, take_ownership_from_abi };
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingManagerStatics<D>::GetDefault() const
    {
        void* result{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingManagerStatics, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingManagerStatics>::GetDefault, &result);
        return winrt::Windows::Media::AppRecording::AppRecordingManager{ result, take_ownership_from_abi };
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingResult<D>::Succeeded() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingResult, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingResult>::get_Succeeded, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingResult<D>::ExtendedError() const
    {
        winrt::hresult value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingResult, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingResult>::get_ExtendedError, put_abi(value));
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingResult<D>::Duration() const
    {
        winrt::Windows::Foundation::TimeSpan value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingResult, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingResult>::get_Duration, put_abi(value));
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingResult<D>::IsFileTruncated() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingResult, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingResult>::get_IsFileTruncated, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingSaveScreenshotResult<D>::Succeeded() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingSaveScreenshotResult, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingSaveScreenshotResult>::get_Succeeded, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingSaveScreenshotResult<D>::ExtendedError() const
    {
        winrt::hresult value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingSaveScreenshotResult, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingSaveScreenshotResult>::get_ExtendedError, put_abi(value));
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingSaveScreenshotResult<D>::SavedScreenshotInfos() const
    {
        void* value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingSaveScreenshotResult, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingSaveScreenshotResult>::get_SavedScreenshotInfos, &value);
        return winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Media::AppRecording::AppRecordingSavedScreenshotInfo>{ value, take_ownership_from_abi };
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingSavedScreenshotInfo<D>::File() const
    {
        void* value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingSavedScreenshotInfo, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingSavedScreenshotInfo>::get_File, &value);
        return winrt::Windows::Storage::StorageFile{ value, take_ownership_from_abi };
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingSavedScreenshotInfo<D>::MediaEncodingSubtype() const
    {
        void* value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingSavedScreenshotInfo, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingSavedScreenshotInfo>::get_MediaEncodingSubtype, &value);
        return hstring{ value, take_ownership_from_abi };
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatus<D>::CanRecord() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatus, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatus>::get_CanRecord, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatus<D>::CanRecordTimeSpan() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatus, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatus>::get_CanRecordTimeSpan, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatus<D>::HistoricalBufferDuration() const
    {
        winrt::Windows::Foundation::TimeSpan value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatus, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatus>::get_HistoricalBufferDuration, put_abi(value));
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatus<D>::Details() const
    {
        void* value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatus, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatus>::get_Details, &value);
        return winrt::Windows::Media::AppRecording::AppRecordingStatusDetails{ value, take_ownership_from_abi };
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatusDetails<D>::IsAnyAppBroadcasting() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails>::get_IsAnyAppBroadcasting, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatusDetails<D>::IsCaptureResourceUnavailable() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails>::get_IsCaptureResourceUnavailable, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatusDetails<D>::IsGameStreamInProgress() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails>::get_IsGameStreamInProgress, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatusDetails<D>::IsTimeSpanRecordingDisabled() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails>::get_IsTimeSpanRecordingDisabled, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatusDetails<D>::IsGpuConstrained() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails>::get_IsGpuConstrained, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatusDetails<D>::IsAppInactive() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails>::get_IsAppInactive, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatusDetails<D>::IsBlockedForApp() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails>::get_IsBlockedForApp, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatusDetails<D>::IsDisabledByUser() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails>::get_IsDisabledByUser, &value);
        return value;
    }
    template <typename D> auto consume_Windows_Media_AppRecording_IAppRecordingStatusDetails<D>::IsDisabledBySystem() const
    {
        bool value{};
        consume_general<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails, D>(static_cast<D const*>(this), &abi_t<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails>::get_IsDisabledBySystem, &value);
        return value;
    }
#ifndef WINRT_LEAN_AND_MEAN
    template <typename D>
    struct produce<D, winrt::Windows::Media::AppRecording::IAppRecordingManager> : produce_base<D, winrt::Windows::Media::AppRecording::IAppRecordingManager>
    {
        std::int32_t __stdcall GetStatus(void** result) noexcept final try
        {
            clear_abi(result);
            typename D::abi_guard guard(this->shim());
            *result = detach_from<winrt::Windows::Media::AppRecording::AppRecordingStatus>(this->shim().GetStatus());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall StartRecordingToFileAsync(void* file, void** operation) noexcept final try
        {
            clear_abi(operation);
            typename D::abi_guard guard(this->shim());
            *operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Media::AppRecording::AppRecordingResult>>(this->shim().StartRecordingToFileAsync(*reinterpret_cast<winrt::Windows::Storage::StorageFile const*>(&file)));
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall RecordTimeSpanToFileAsync(std::int64_t startTime, std::int64_t duration, void* file, void** operation) noexcept final try
        {
            clear_abi(operation);
            typename D::abi_guard guard(this->shim());
            *operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Media::AppRecording::AppRecordingResult>>(this->shim().RecordTimeSpanToFileAsync(*reinterpret_cast<winrt::Windows::Foundation::DateTime const*>(&startTime), *reinterpret_cast<winrt::Windows::Foundation::TimeSpan const*>(&duration), *reinterpret_cast<winrt::Windows::Storage::StorageFile const*>(&file)));
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_SupportedScreenshotMediaEncodingSubtypes(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().SupportedScreenshotMediaEncodingSubtypes());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall SaveScreenshotToFilesAsync(void* folder, void* filenamePrefix, std::int32_t option, void* requestedFormats, void** operation) noexcept final try
        {
            clear_abi(operation);
            typename D::abi_guard guard(this->shim());
            *operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Media::AppRecording::AppRecordingSaveScreenshotResult>>(this->shim().SaveScreenshotToFilesAsync(*reinterpret_cast<winrt::Windows::Storage::StorageFolder const*>(&folder), *reinterpret_cast<hstring const*>(&filenamePrefix), *reinterpret_cast<winrt::Windows::Media::AppRecording::AppRecordingSaveScreenshotOption const*>(&option), *reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&requestedFormats)));
            return 0;
        }
        catch (...) { return to_hresult(); }
    };
#endif // WINRT_LEAN_AND_MEAN
#ifndef WINRT_LEAN_AND_MEAN
    template <typename D>
    struct produce<D, winrt::Windows::Media::AppRecording::IAppRecordingManagerStatics> : produce_base<D, winrt::Windows::Media::AppRecording::IAppRecordingManagerStatics>
    {
        std::int32_t __stdcall GetDefault(void** result) noexcept final try
        {
            clear_abi(result);
            typename D::abi_guard guard(this->shim());
            *result = detach_from<winrt::Windows::Media::AppRecording::AppRecordingManager>(this->shim().GetDefault());
            return 0;
        }
        catch (...) { return to_hresult(); }
    };
#endif // WINRT_LEAN_AND_MEAN
#ifndef WINRT_LEAN_AND_MEAN
    template <typename D>
    struct produce<D, winrt::Windows::Media::AppRecording::IAppRecordingResult> : produce_base<D, winrt::Windows::Media::AppRecording::IAppRecordingResult>
    {
        std::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(); }
        std::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(); }
        std::int32_t __stdcall get_Duration(std::int64_t* value) noexcept final try
        {
            zero_abi<winrt::Windows::Foundation::TimeSpan>(value);
            typename D::abi_guard guard(this->shim());
            *value = detach_from<winrt::Windows::Foundation::TimeSpan>(this->shim().Duration());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_IsFileTruncated(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().IsFileTruncated());
            return 0;
        }
        catch (...) { return to_hresult(); }
    };
#endif // WINRT_LEAN_AND_MEAN
#ifndef WINRT_LEAN_AND_MEAN
    template <typename D>
    struct produce<D, winrt::Windows::Media::AppRecording::IAppRecordingSaveScreenshotResult> : produce_base<D, winrt::Windows::Media::AppRecording::IAppRecordingSaveScreenshotResult>
    {
        std::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(); }
        std::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(); }
        std::int32_t __stdcall get_SavedScreenshotInfos(void** value) noexcept final try
        {
            clear_abi(value);
            typename D::abi_guard guard(this->shim());
            *value = detach_from<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Media::AppRecording::AppRecordingSavedScreenshotInfo>>(this->shim().SavedScreenshotInfos());
            return 0;
        }
        catch (...) { return to_hresult(); }
    };
#endif // WINRT_LEAN_AND_MEAN
#ifndef WINRT_LEAN_AND_MEAN
    template <typename D>
    struct produce<D, winrt::Windows::Media::AppRecording::IAppRecordingSavedScreenshotInfo> : produce_base<D, winrt::Windows::Media::AppRecording::IAppRecordingSavedScreenshotInfo>
    {
        std::int32_t __stdcall get_File(void** value) noexcept final try
        {
            clear_abi(value);
            typename D::abi_guard guard(this->shim());
            *value = detach_from<winrt::Windows::Storage::StorageFile>(this->shim().File());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_MediaEncodingSubtype(void** value) noexcept final try
        {
            clear_abi(value);
            typename D::abi_guard guard(this->shim());
            *value = detach_from<hstring>(this->shim().MediaEncodingSubtype());
            return 0;
        }
        catch (...) { return to_hresult(); }
    };
#endif // WINRT_LEAN_AND_MEAN
#ifndef WINRT_LEAN_AND_MEAN
    template <typename D>
    struct produce<D, winrt::Windows::Media::AppRecording::IAppRecordingStatus> : produce_base<D, winrt::Windows::Media::AppRecording::IAppRecordingStatus>
    {
        std::int32_t __stdcall get_CanRecord(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().CanRecord());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_CanRecordTimeSpan(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().CanRecordTimeSpan());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_HistoricalBufferDuration(std::int64_t* value) noexcept final try
        {
            zero_abi<winrt::Windows::Foundation::TimeSpan>(value);
            typename D::abi_guard guard(this->shim());
            *value = detach_from<winrt::Windows::Foundation::TimeSpan>(this->shim().HistoricalBufferDuration());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_Details(void** value) noexcept final try
        {
            clear_abi(value);
            typename D::abi_guard guard(this->shim());
            *value = detach_from<winrt::Windows::Media::AppRecording::AppRecordingStatusDetails>(this->shim().Details());
            return 0;
        }
        catch (...) { return to_hresult(); }
    };
#endif // WINRT_LEAN_AND_MEAN
#ifndef WINRT_LEAN_AND_MEAN
    template <typename D>
    struct produce<D, winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails> : produce_base<D, winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails>
    {
        std::int32_t __stdcall get_IsAnyAppBroadcasting(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().IsAnyAppBroadcasting());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_IsCaptureResourceUnavailable(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().IsCaptureResourceUnavailable());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_IsGameStreamInProgress(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().IsGameStreamInProgress());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_IsTimeSpanRecordingDisabled(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().IsTimeSpanRecordingDisabled());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_IsGpuConstrained(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().IsGpuConstrained());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_IsAppInactive(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().IsAppInactive());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_IsBlockedForApp(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().IsBlockedForApp());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_IsDisabledByUser(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().IsDisabledByUser());
            return 0;
        }
        catch (...) { return to_hresult(); }
        std::int32_t __stdcall get_IsDisabledBySystem(bool* value) noexcept final try
        {
            typename D::abi_guard guard(this->shim());
            *value = detach_from<bool>(this->shim().IsDisabledBySystem());
            return 0;
        }
        catch (...) { return to_hresult(); }
    };
#endif // WINRT_LEAN_AND_MEAN
}
WINRT_EXPORT namespace winrt::Windows::Media::AppRecording
{
    inline auto AppRecordingManager::GetDefault()
    {
        return impl::call_factory_cast<winrt::Windows::Media::AppRecording::AppRecordingManager(*)(IAppRecordingManagerStatics const&), AppRecordingManager, IAppRecordingManagerStatics>([](IAppRecordingManagerStatics const& f) { return f.GetDefault(); });
    }
}
namespace std
{
#ifndef WINRT_LEAN_AND_MEAN
    template<> struct hash<winrt::Windows::Media::AppRecording::IAppRecordingManager> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::IAppRecordingManagerStatics> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::IAppRecordingResult> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::IAppRecordingSaveScreenshotResult> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::IAppRecordingSavedScreenshotInfo> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::IAppRecordingStatus> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::IAppRecordingStatusDetails> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::AppRecordingManager> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::AppRecordingResult> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::AppRecordingSaveScreenshotResult> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::AppRecordingSavedScreenshotInfo> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::AppRecordingStatus> : winrt::impl::hash_base {};
    template<> struct hash<winrt::Windows::Media::AppRecording::AppRecordingStatusDetails> : winrt::impl::hash_base {};
#endif // WINRT_LEAN_AND_MEAN
#ifdef __cpp_lib_format
#endif // __cpp_lib_format
}
#endif
#endif // WINRT_IMPORT_MODULE
