// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Media_Capture_H #define WINRT_Windows_Media_Capture_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.Media.h" #include "winrt/impl/Windows.Devices.Enumeration.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Graphics.DirectX.Direct3D11.2.h" #include "winrt/impl/Windows.Graphics.Imaging.2.h" #include "winrt/impl/Windows.Media.2.h" #include "winrt/impl/Windows.Media.Capture.Core.2.h" #include "winrt/impl/Windows.Media.Capture.Frames.2.h" #include "winrt/impl/Windows.Media.Core.2.h" #include "winrt/impl/Windows.Media.Devices.2.h" #include "winrt/impl/Windows.Media.Effects.2.h" #include "winrt/impl/Windows.Media.MediaProperties.2.h" #include "winrt/impl/Windows.Security.Authentication.Web.2.h" #include "winrt/impl/Windows.Security.Credentials.2.h" #include "winrt/impl/Windows.Storage.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.UI.WindowManagement.2.h" #include "winrt/impl/Windows.Media.Capture.2.h" namespace winrt::impl { template auto consume_Windows_Media_Capture_IAdvancedCapturedPhoto::Frame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedCapturedPhoto)->get_Frame(&value)); return winrt::Windows::Media::Capture::CapturedFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAdvancedCapturedPhoto::Mode() const { winrt::Windows::Media::Devices::AdvancedPhotoMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedCapturedPhoto)->get_Mode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAdvancedCapturedPhoto::Context() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedCapturedPhoto)->get_Context(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAdvancedCapturedPhoto2::FrameBoundsRelativeToReferencePhoto() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedCapturedPhoto2)->get_FrameBoundsRelativeToReferencePhoto(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAdvancedPhotoCapture::CaptureAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedPhotoCapture)->CaptureAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAdvancedPhotoCapture::CaptureAsync(winrt::Windows::Foundation::IInspectable const& context) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedPhotoCapture)->CaptureWithContextAsync(*(void**)(&context), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAdvancedPhotoCapture::OptionalReferencePhotoCaptured(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedPhotoCapture)->add_OptionalReferencePhotoCaptured(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAdvancedPhotoCapture::OptionalReferencePhotoCaptured(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, OptionalReferencePhotoCaptured(handler)); } template auto consume_Windows_Media_Capture_IAdvancedPhotoCapture::OptionalReferencePhotoCaptured(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedPhotoCapture)->remove_OptionalReferencePhotoCaptured(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAdvancedPhotoCapture::AllPhotosCaptured(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedPhotoCapture)->add_AllPhotosCaptured(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAdvancedPhotoCapture::AllPhotosCaptured(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AllPhotosCaptured(handler)); } template auto consume_Windows_Media_Capture_IAdvancedPhotoCapture::AllPhotosCaptured(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedPhotoCapture)->remove_AllPhotosCaptured(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAdvancedPhotoCapture::FinishAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAdvancedPhotoCapture)->FinishAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::PlugInState(winrt::Windows::Media::Capture::AppBroadcastPlugInState const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->put_PlugInState(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::PlugInState() const { winrt::Windows::Media::Capture::AppBroadcastPlugInState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->get_PlugInState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::SignInInfo(winrt::Windows::Media::Capture::AppBroadcastBackgroundServiceSignInInfo const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->put_SignInInfo(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::SignInInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->get_SignInInfo(&value)); return winrt::Windows::Media::Capture::AppBroadcastBackgroundServiceSignInInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::StreamInfo(winrt::Windows::Media::Capture::AppBroadcastBackgroundServiceStreamInfo const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->put_StreamInfo(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::StreamInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->get_StreamInfo(&value)); return winrt::Windows::Media::Capture::AppBroadcastBackgroundServiceStreamInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::AppId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->get_AppId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::BroadcastTitle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->get_BroadcastTitle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::ViewerCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->put_ViewerCount(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::ViewerCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->get_ViewerCount(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::TerminateBroadcast(winrt::Windows::Media::Capture::AppBroadcastTerminationReason const& reason, uint32_t providerSpecificReason) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->TerminateBroadcast(static_cast(reason), providerSpecificReason)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::HeartbeatRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->add_HeartbeatRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::HeartbeatRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, HeartbeatRequested(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::HeartbeatRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->remove_HeartbeatRequested(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService::TitleId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService)->get_TitleId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastTitle(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->put_BroadcastTitle(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastLanguage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->get_BroadcastLanguage(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastLanguage(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->put_BroadcastLanguage(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastChannel() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->get_BroadcastChannel(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastChannel(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->put_BroadcastChannel(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastTitleChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->add_BroadcastTitleChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastTitleChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, BroadcastTitleChanged(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastTitleChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->remove_BroadcastTitleChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastLanguageChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->add_BroadcastLanguageChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastLanguageChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, BroadcastLanguageChanged(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastLanguageChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->remove_BroadcastLanguageChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastChannelChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->add_BroadcastChannelChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastChannelChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, BroadcastChannelChanged(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundService2::BroadcastChannelChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundService2)->remove_BroadcastChannelChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::SignInState() const { winrt::Windows::Media::Capture::AppBroadcastSignInState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo)->get_SignInState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::OAuthRequestUri(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo)->put_OAuthRequestUri(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::OAuthRequestUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo)->get_OAuthRequestUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::OAuthCallbackUri(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo)->put_OAuthCallbackUri(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::OAuthCallbackUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo)->get_OAuthCallbackUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::AuthenticationResult() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo)->get_AuthenticationResult(&value)); return winrt::Windows::Security::Authentication::Web::WebAuthenticationResult{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::UserName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo)->put_UserName(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::UserName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo)->get_UserName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::SignInStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo)->add_SignInStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::SignInStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SignInStateChanged(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo::SignInStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo)->remove_SignInStateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo2::UserNameChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo2)->add_UserNameChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo2::UserNameChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, UserNameChanged(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceSignInInfo2::UserNameChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceSignInInfo2)->remove_UserNameChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::StreamState() const { winrt::Windows::Media::Capture::AppBroadcastStreamState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->get_StreamState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::DesiredVideoEncodingBitrate(uint64_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->put_DesiredVideoEncodingBitrate(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::DesiredVideoEncodingBitrate() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->get_DesiredVideoEncodingBitrate(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::BandwidthTestBitrate(uint64_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->put_BandwidthTestBitrate(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::BandwidthTestBitrate() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->get_BandwidthTestBitrate(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::AudioCodec(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->put_AudioCodec(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::AudioCodec() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->get_AudioCodec(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::BroadcastStreamReader() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->get_BroadcastStreamReader(&value)); return winrt::Windows::Media::Capture::AppBroadcastStreamReader{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::StreamStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->add_StreamStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::StreamStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, StreamStateChanged(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::StreamStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->remove_StreamStateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::VideoEncodingResolutionChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->add_VideoEncodingResolutionChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::VideoEncodingResolutionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, VideoEncodingResolutionChanged(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::VideoEncodingResolutionChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->remove_VideoEncodingResolutionChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::VideoEncodingBitrateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->add_VideoEncodingBitrateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::VideoEncodingBitrateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, VideoEncodingBitrateChanged(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo::VideoEncodingBitrateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo)->remove_VideoEncodingBitrateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastBackgroundServiceStreamInfo2::ReportProblemWithStream() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastBackgroundServiceStreamInfo2)->ReportProblemWithStream()); } template auto consume_Windows_Media_Capture_IAppBroadcastCameraCaptureStateChangedEventArgs::State() const { winrt::Windows::Media::Capture::AppBroadcastCameraCaptureState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastCameraCaptureStateChangedEventArgs)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastCameraCaptureStateChangedEventArgs::ErrorCode() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastCameraCaptureStateChangedEventArgs)->get_ErrorCode(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsBroadcastEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_IsBroadcastEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsDisabledByPolicy() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_IsDisabledByPolicy(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsGpuConstrained() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_IsGpuConstrained(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::HasHardwareEncoder() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_HasHardwareEncoder(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsAudioCaptureEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->put_IsAudioCaptureEnabled(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsAudioCaptureEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_IsAudioCaptureEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsMicrophoneCaptureEnabledByDefault(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->put_IsMicrophoneCaptureEnabledByDefault(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsMicrophoneCaptureEnabledByDefault() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_IsMicrophoneCaptureEnabledByDefault(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsEchoCancellationEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->put_IsEchoCancellationEnabled(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsEchoCancellationEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_IsEchoCancellationEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::SystemAudioGain(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->put_SystemAudioGain(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::SystemAudioGain() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_SystemAudioGain(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::MicrophoneGain(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->put_MicrophoneGain(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::MicrophoneGain() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_MicrophoneGain(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsCameraCaptureEnabledByDefault(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->put_IsCameraCaptureEnabledByDefault(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsCameraCaptureEnabledByDefault() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_IsCameraCaptureEnabledByDefault(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::SelectedCameraId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->put_SelectedCameraId(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::SelectedCameraId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_SelectedCameraId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::CameraOverlayLocation(winrt::Windows::Media::Capture::AppBroadcastCameraOverlayLocation const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->put_CameraOverlayLocation(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::CameraOverlayLocation() const { winrt::Windows::Media::Capture::AppBroadcastCameraOverlayLocation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_CameraOverlayLocation(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::CameraOverlaySize(winrt::Windows::Media::Capture::AppBroadcastCameraOverlaySize const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->put_CameraOverlaySize(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::CameraOverlaySize() const { winrt::Windows::Media::Capture::AppBroadcastCameraOverlaySize value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_CameraOverlaySize(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsCursorImageCaptureEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->put_IsCursorImageCaptureEnabled(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastGlobalSettings::IsCursorImageCaptureEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastGlobalSettings)->get_IsCursorImageCaptureEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastHeartbeatRequestedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastHeartbeatRequestedEventArgs)->put_Handled(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastHeartbeatRequestedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastHeartbeatRequestedEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastManagerStatics::GetGlobalSettings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastManagerStatics)->GetGlobalSettings(&value)); return winrt::Windows::Media::Capture::AppBroadcastGlobalSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastManagerStatics::ApplyGlobalSettings(winrt::Windows::Media::Capture::AppBroadcastGlobalSettings const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastManagerStatics)->ApplyGlobalSettings(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastManagerStatics::GetProviderSettings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastManagerStatics)->GetProviderSettings(&value)); return winrt::Windows::Media::Capture::AppBroadcastProviderSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastManagerStatics::ApplyProviderSettings(winrt::Windows::Media::Capture::AppBroadcastProviderSettings const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastManagerStatics)->ApplyProviderSettings(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastMicrophoneCaptureStateChangedEventArgs::State() const { winrt::Windows::Media::Capture::AppBroadcastMicrophoneCaptureState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastMicrophoneCaptureStateChangedEventArgs)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastMicrophoneCaptureStateChangedEventArgs::ErrorCode() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastMicrophoneCaptureStateChangedEventArgs)->get_ErrorCode(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPlugIn::AppId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugIn)->get_AppId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPlugIn::ProviderSettings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugIn)->get_ProviderSettings(&value)); return winrt::Windows::Media::Capture::AppBroadcastProviderSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPlugIn::Logo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugIn)->get_Logo(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStreamReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPlugIn::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugIn)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPlugInManager::IsBroadcastProviderAvailable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugInManager)->get_IsBroadcastProviderAvailable(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPlugInManager::PlugInList() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugInManager)->get_PlugInList(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPlugInManager::DefaultPlugIn() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugInManager)->get_DefaultPlugIn(&value)); return winrt::Windows::Media::Capture::AppBroadcastPlugIn{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPlugInManager::DefaultPlugIn(winrt::Windows::Media::Capture::AppBroadcastPlugIn const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugInManager)->put_DefaultPlugIn(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastPlugInManagerStatics::GetDefault() const { void* ppInstance{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugInManagerStatics)->GetDefault(&ppInstance)); return winrt::Windows::Media::Capture::AppBroadcastPlugInManager{ ppInstance, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPlugInManagerStatics::GetForUser(winrt::Windows::System::User const& user) const { void* ppInstance{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugInManagerStatics)->GetForUser(*(void**)(&user), &ppInstance)); return winrt::Windows::Media::Capture::AppBroadcastPlugInManager{ ppInstance, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPlugInStateChangedEventArgs::PlugInState() const { winrt::Windows::Media::Capture::AppBroadcastPlugInState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPlugInStateChangedEventArgs)->get_PlugInState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreview::StopPreview() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreview)->StopPreview()); } template auto consume_Windows_Media_Capture_IAppBroadcastPreview::PreviewState() const { winrt::Windows::Media::Capture::AppBroadcastPreviewState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreview)->get_PreviewState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreview::ErrorCode() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreview)->get_ErrorCode(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPreview::PreviewStateChanged(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreview)->add_PreviewStateChanged(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastPreview::PreviewStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, PreviewStateChanged(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastPreview::PreviewStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreview)->remove_PreviewStateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastPreview::PreviewStreamReader() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreview)->get_PreviewStreamReader(&value)); return winrt::Windows::Media::Capture::AppBroadcastPreviewStreamReader{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStateChangedEventArgs::PreviewState() const { winrt::Windows::Media::Capture::AppBroadcastPreviewState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStateChangedEventArgs)->get_PreviewState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStateChangedEventArgs::ErrorCode() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStateChangedEventArgs)->get_ErrorCode(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamReader::VideoWidth() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamReader)->get_VideoWidth(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamReader::VideoHeight() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamReader)->get_VideoHeight(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamReader::VideoStride() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamReader)->get_VideoStride(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamReader::VideoBitmapPixelFormat() const { winrt::Windows::Graphics::Imaging::BitmapPixelFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamReader)->get_VideoBitmapPixelFormat(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamReader::VideoBitmapAlphaMode() const { winrt::Windows::Graphics::Imaging::BitmapAlphaMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamReader)->get_VideoBitmapAlphaMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamReader::TryGetNextVideoFrame() const { void* frame{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamReader)->TryGetNextVideoFrame(&frame)); return winrt::Windows::Media::Capture::AppBroadcastPreviewStreamVideoFrame{ frame, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamReader::VideoFrameArrived(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamReader)->add_VideoFrameArrived(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamReader::VideoFrameArrived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, VideoFrameArrived(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamReader::VideoFrameArrived(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamReader)->remove_VideoFrameArrived(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamVideoFrame::VideoHeader() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamVideoFrame)->get_VideoHeader(&value)); return winrt::Windows::Media::Capture::AppBroadcastPreviewStreamVideoHeader{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamVideoFrame::VideoBuffer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamVideoFrame)->get_VideoBuffer(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamVideoHeader::AbsoluteTimestamp() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamVideoHeader)->get_AbsoluteTimestamp(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamVideoHeader::RelativeTimestamp() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamVideoHeader)->get_RelativeTimestamp(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamVideoHeader::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamVideoHeader)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastPreviewStreamVideoHeader::FrameId() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastPreviewStreamVideoHeader)->get_FrameId(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::DefaultBroadcastTitle(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->put_DefaultBroadcastTitle(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::DefaultBroadcastTitle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->get_DefaultBroadcastTitle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::AudioEncodingBitrate(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->put_AudioEncodingBitrate(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::AudioEncodingBitrate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->get_AudioEncodingBitrate(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::CustomVideoEncodingBitrate(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->put_CustomVideoEncodingBitrate(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::CustomVideoEncodingBitrate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->get_CustomVideoEncodingBitrate(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::CustomVideoEncodingHeight(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->put_CustomVideoEncodingHeight(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::CustomVideoEncodingHeight() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->get_CustomVideoEncodingHeight(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::CustomVideoEncodingWidth(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->put_CustomVideoEncodingWidth(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::CustomVideoEncodingWidth() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->get_CustomVideoEncodingWidth(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::VideoEncodingBitrateMode(winrt::Windows::Media::Capture::AppBroadcastVideoEncodingBitrateMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->put_VideoEncodingBitrateMode(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::VideoEncodingBitrateMode() const { winrt::Windows::Media::Capture::AppBroadcastVideoEncodingBitrateMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->get_VideoEncodingBitrateMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::VideoEncodingResolutionMode(winrt::Windows::Media::Capture::AppBroadcastVideoEncodingResolutionMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->put_VideoEncodingResolutionMode(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppBroadcastProviderSettings::VideoEncodingResolutionMode() const { winrt::Windows::Media::Capture::AppBroadcastVideoEncodingResolutionMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastProviderSettings)->get_VideoEncodingResolutionMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastServices::CaptureTargetType() const { winrt::Windows::Media::Capture::AppBroadcastCaptureTargetType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->get_CaptureTargetType(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastServices::CaptureTargetType(winrt::Windows::Media::Capture::AppBroadcastCaptureTargetType const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->put_CaptureTargetType(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppBroadcastServices::BroadcastTitle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->get_BroadcastTitle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastServices::BroadcastTitle(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->put_BroadcastTitle(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastServices::BroadcastLanguage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->get_BroadcastLanguage(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastServices::BroadcastLanguage(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->put_BroadcastLanguage(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastServices::UserName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->get_UserName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastServices::CanCapture() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->get_CanCapture(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastServices::EnterBroadcastModeAsync(winrt::Windows::Media::Capture::AppBroadcastPlugIn const& plugIn) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->EnterBroadcastModeAsync(*(void**)(&plugIn), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastServices::ExitBroadcastMode(winrt::Windows::Media::Capture::AppBroadcastExitBroadcastModeReason const& reason) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->ExitBroadcastMode(static_cast(reason))); } template auto consume_Windows_Media_Capture_IAppBroadcastServices::StartBroadcast() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->StartBroadcast()); } template auto consume_Windows_Media_Capture_IAppBroadcastServices::PauseBroadcast() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->PauseBroadcast()); } template auto consume_Windows_Media_Capture_IAppBroadcastServices::ResumeBroadcast() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->ResumeBroadcast()); } template auto consume_Windows_Media_Capture_IAppBroadcastServices::StartPreview(winrt::Windows::Foundation::Size const& desiredSize) const { void* preview{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->StartPreview(impl::bind_in(desiredSize), &preview)); return winrt::Windows::Media::Capture::AppBroadcastPreview{ preview, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastServices::State() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastServices)->get_State(&value)); return winrt::Windows::Media::Capture::AppBroadcastState{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastSignInStateChangedEventArgs::SignInState() const { winrt::Windows::Media::Capture::AppBroadcastSignInState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastSignInStateChangedEventArgs)->get_SignInState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastSignInStateChangedEventArgs::Result() const { winrt::Windows::Media::Capture::AppBroadcastSignInResult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastSignInStateChangedEventArgs)->get_Result(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::IsCaptureTargetRunning() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_IsCaptureTargetRunning(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::ViewerCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_ViewerCount(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::ShouldCaptureMicrophone() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_ShouldCaptureMicrophone(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::ShouldCaptureMicrophone(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->put_ShouldCaptureMicrophone(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::RestartMicrophoneCapture() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->RestartMicrophoneCapture()); } template auto consume_Windows_Media_Capture_IAppBroadcastState::ShouldCaptureCamera() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_ShouldCaptureCamera(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::ShouldCaptureCamera(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->put_ShouldCaptureCamera(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::RestartCameraCapture() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->RestartCameraCapture()); } template auto consume_Windows_Media_Capture_IAppBroadcastState::EncodedVideoSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_EncodedVideoSize(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::MicrophoneCaptureState() const { winrt::Windows::Media::Capture::AppBroadcastMicrophoneCaptureState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_MicrophoneCaptureState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::MicrophoneCaptureError() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_MicrophoneCaptureError(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::CameraCaptureState() const { winrt::Windows::Media::Capture::AppBroadcastCameraCaptureState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_CameraCaptureState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::CameraCaptureError() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_CameraCaptureError(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::StreamState() const { winrt::Windows::Media::Capture::AppBroadcastStreamState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_StreamState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::PlugInState() const { winrt::Windows::Media::Capture::AppBroadcastPlugInState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_PlugInState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::OAuthRequestUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_OAuthRequestUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastState::OAuthCallbackUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_OAuthCallbackUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastState::AuthenticationResult() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_AuthenticationResult(&value)); return winrt::Windows::Security::Authentication::Web::WebAuthenticationResult{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastState::AuthenticationResult(winrt::Windows::Security::Authentication::Web::WebAuthenticationResult const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->put_AuthenticationResult(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppBroadcastState::SignInState(winrt::Windows::Media::Capture::AppBroadcastSignInState const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->put_SignInState(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppBroadcastState::SignInState() const { winrt::Windows::Media::Capture::AppBroadcastSignInState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_SignInState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::TerminationReason() const { winrt::Windows::Media::Capture::AppBroadcastTerminationReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_TerminationReason(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::TerminationReasonPlugInSpecific() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->get_TerminationReasonPlugInSpecific(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastState::ViewerCountChanged(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->add_ViewerCountChanged(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastState::ViewerCountChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, ViewerCountChanged(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::ViewerCountChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->remove_ViewerCountChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::MicrophoneCaptureStateChanged(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->add_MicrophoneCaptureStateChanged(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastState::MicrophoneCaptureStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, MicrophoneCaptureStateChanged(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::MicrophoneCaptureStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->remove_MicrophoneCaptureStateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::CameraCaptureStateChanged(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->add_CameraCaptureStateChanged(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastState::CameraCaptureStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, CameraCaptureStateChanged(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::CameraCaptureStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->remove_CameraCaptureStateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::PlugInStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->add_PlugInStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastState::PlugInStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PlugInStateChanged(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::PlugInStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->remove_PlugInStateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::StreamStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->add_StreamStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastState::StreamStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, StreamStateChanged(handler)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::StreamStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->remove_StreamStateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::CaptureTargetClosed(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->add_CaptureTargetClosed(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastState::CaptureTargetClosed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, CaptureTargetClosed(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastState::CaptureTargetClosed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastState)->remove_CaptureTargetClosed(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastStreamAudioFrame::AudioHeader() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamAudioFrame)->get_AudioHeader(&value)); return winrt::Windows::Media::Capture::AppBroadcastStreamAudioHeader{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamAudioFrame::AudioBuffer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamAudioFrame)->get_AudioBuffer(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamAudioHeader::AbsoluteTimestamp() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamAudioHeader)->get_AbsoluteTimestamp(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamAudioHeader::RelativeTimestamp() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamAudioHeader)->get_RelativeTimestamp(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamAudioHeader::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamAudioHeader)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamAudioHeader::HasDiscontinuity() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamAudioHeader)->get_HasDiscontinuity(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamAudioHeader::FrameId() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamAudioHeader)->get_FrameId(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::AudioChannels() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->get_AudioChannels(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::AudioSampleRate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->get_AudioSampleRate(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::AudioAacSequence() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->get_AudioAacSequence(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::AudioBitrate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->get_AudioBitrate(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::TryGetNextAudioFrame() const { void* frame{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->TryGetNextAudioFrame(&frame)); return winrt::Windows::Media::Capture::AppBroadcastStreamAudioFrame{ frame, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::VideoWidth() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->get_VideoWidth(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::VideoHeight() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->get_VideoHeight(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::VideoBitrate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->get_VideoBitrate(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::TryGetNextVideoFrame() const { void* frame{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->TryGetNextVideoFrame(&frame)); return winrt::Windows::Media::Capture::AppBroadcastStreamVideoFrame{ frame, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::AudioFrameArrived(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->add_AudioFrameArrived(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::AudioFrameArrived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, AudioFrameArrived(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::AudioFrameArrived(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->remove_AudioFrameArrived(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::VideoFrameArrived(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->add_VideoFrameArrived(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::VideoFrameArrived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, VideoFrameArrived(value)); } template auto consume_Windows_Media_Capture_IAppBroadcastStreamReader::VideoFrameArrived(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamReader)->remove_VideoFrameArrived(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppBroadcastStreamStateChangedEventArgs::StreamState() const { winrt::Windows::Media::Capture::AppBroadcastStreamState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamStateChangedEventArgs)->get_StreamState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamVideoFrame::VideoHeader() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamVideoFrame)->get_VideoHeader(&value)); return winrt::Windows::Media::Capture::AppBroadcastStreamVideoHeader{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamVideoFrame::VideoBuffer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamVideoFrame)->get_VideoBuffer(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamVideoHeader::AbsoluteTimestamp() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamVideoHeader)->get_AbsoluteTimestamp(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamVideoHeader::RelativeTimestamp() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamVideoHeader)->get_RelativeTimestamp(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamVideoHeader::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamVideoHeader)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamVideoHeader::IsKeyFrame() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamVideoHeader)->get_IsKeyFrame(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamVideoHeader::HasDiscontinuity() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamVideoHeader)->get_HasDiscontinuity(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastStreamVideoHeader::FrameId() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastStreamVideoHeader)->get_FrameId(&value)); return value; } template auto consume_Windows_Media_Capture_IAppBroadcastTriggerDetails::BackgroundService() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastTriggerDetails)->get_BackgroundService(&value)); return winrt::Windows::Media::Capture::AppBroadcastBackgroundService{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppBroadcastViewerCountChangedEventArgs::ViewerCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppBroadcastViewerCountChangedEventArgs)->get_ViewerCount(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCapture::IsCapturingAudio() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCapture)->get_IsCapturingAudio(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCapture::IsCapturingVideo() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCapture)->get_IsCapturingVideo(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCapture::CapturingChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCapture)->add_CapturingChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppCapture::CapturingChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CapturingChanged(handler)); } template auto consume_Windows_Media_Capture_IAppCapture::CapturingChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCapture)->remove_CapturingChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleGameBarKey(winrt::Windows::System::VirtualKey const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->put_ToggleGameBarKey(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleGameBarKey() const { winrt::Windows::System::VirtualKey value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->get_ToggleGameBarKey(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleGameBarKeyModifiers(winrt::Windows::System::VirtualKeyModifiers const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->put_ToggleGameBarKeyModifiers(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleGameBarKeyModifiers() const { winrt::Windows::System::VirtualKeyModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->get_ToggleGameBarKeyModifiers(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::SaveHistoricalVideoKey(winrt::Windows::System::VirtualKey const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->put_SaveHistoricalVideoKey(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::SaveHistoricalVideoKey() const { winrt::Windows::System::VirtualKey value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->get_SaveHistoricalVideoKey(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::SaveHistoricalVideoKeyModifiers(winrt::Windows::System::VirtualKeyModifiers const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->put_SaveHistoricalVideoKeyModifiers(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::SaveHistoricalVideoKeyModifiers() const { winrt::Windows::System::VirtualKeyModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->get_SaveHistoricalVideoKeyModifiers(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleRecordingKey(winrt::Windows::System::VirtualKey const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->put_ToggleRecordingKey(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleRecordingKey() const { winrt::Windows::System::VirtualKey value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->get_ToggleRecordingKey(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleRecordingKeyModifiers(winrt::Windows::System::VirtualKeyModifiers const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->put_ToggleRecordingKeyModifiers(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleRecordingKeyModifiers() const { winrt::Windows::System::VirtualKeyModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->get_ToggleRecordingKeyModifiers(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::TakeScreenshotKey(winrt::Windows::System::VirtualKey const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->put_TakeScreenshotKey(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::TakeScreenshotKey() const { winrt::Windows::System::VirtualKey value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->get_TakeScreenshotKey(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::TakeScreenshotKeyModifiers(winrt::Windows::System::VirtualKeyModifiers const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->put_TakeScreenshotKeyModifiers(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::TakeScreenshotKeyModifiers() const { winrt::Windows::System::VirtualKeyModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->get_TakeScreenshotKeyModifiers(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleRecordingIndicatorKey(winrt::Windows::System::VirtualKey const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->put_ToggleRecordingIndicatorKey(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleRecordingIndicatorKey() const { winrt::Windows::System::VirtualKey value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->get_ToggleRecordingIndicatorKey(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleRecordingIndicatorKeyModifiers(winrt::Windows::System::VirtualKeyModifiers const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->put_ToggleRecordingIndicatorKeyModifiers(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys::ToggleRecordingIndicatorKeyModifiers() const { winrt::Windows::System::VirtualKeyModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys)->get_ToggleRecordingIndicatorKeyModifiers(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys2::ToggleMicrophoneCaptureKey(winrt::Windows::System::VirtualKey const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys2)->put_ToggleMicrophoneCaptureKey(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys2::ToggleMicrophoneCaptureKey() const { winrt::Windows::System::VirtualKey value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys2)->get_ToggleMicrophoneCaptureKey(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys2::ToggleMicrophoneCaptureKeyModifiers(winrt::Windows::System::VirtualKeyModifiers const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys2)->put_ToggleMicrophoneCaptureKeyModifiers(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys2::ToggleMicrophoneCaptureKeyModifiers() const { winrt::Windows::System::VirtualKeyModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys2)->get_ToggleMicrophoneCaptureKeyModifiers(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys3::ToggleCameraCaptureKey(winrt::Windows::System::VirtualKey const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys3)->put_ToggleCameraCaptureKey(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys3::ToggleCameraCaptureKey() const { winrt::Windows::System::VirtualKey value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys3)->get_ToggleCameraCaptureKey(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys3::ToggleCameraCaptureKeyModifiers(winrt::Windows::System::VirtualKeyModifiers const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys3)->put_ToggleCameraCaptureKeyModifiers(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys3::ToggleCameraCaptureKeyModifiers() const { winrt::Windows::System::VirtualKeyModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys3)->get_ToggleCameraCaptureKeyModifiers(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys3::ToggleBroadcastKey(winrt::Windows::System::VirtualKey const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys3)->put_ToggleBroadcastKey(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys3::ToggleBroadcastKey() const { winrt::Windows::System::VirtualKey value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys3)->get_ToggleBroadcastKey(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys3::ToggleBroadcastKeyModifiers(winrt::Windows::System::VirtualKeyModifiers const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys3)->put_ToggleBroadcastKeyModifiers(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureAlternateShortcutKeys3::ToggleBroadcastKeyModifiers() const { winrt::Windows::System::VirtualKeyModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureAlternateShortcutKeys3)->get_ToggleBroadcastKeyModifiers(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureDurationGeneratedEventArgs::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureDurationGeneratedEventArgs)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureFileGeneratedEventArgs::File() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureFileGeneratedEventArgs)->get_File(&value)); return winrt::Windows::Storage::StorageFile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureManagerStatics::GetCurrentSettings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureManagerStatics)->GetCurrentSettings(&value)); return winrt::Windows::Media::Capture::AppCaptureSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureManagerStatics::ApplySettings(winrt::Windows::Media::Capture::AppCaptureSettings const& appCaptureSettings) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureManagerStatics)->ApplySettings(*(void**)(&appCaptureSettings))); } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::AddStringEvent(param::hstring const& name, param::hstring const& value, winrt::Windows::Media::Capture::AppCaptureMetadataPriority const& priority) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->AddStringEvent(*(void**)(&name), *(void**)(&value), static_cast(priority))); } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::AddInt32Event(param::hstring const& name, int32_t value, winrt::Windows::Media::Capture::AppCaptureMetadataPriority const& priority) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->AddInt32Event(*(void**)(&name), value, static_cast(priority))); } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::AddDoubleEvent(param::hstring const& name, double value, winrt::Windows::Media::Capture::AppCaptureMetadataPriority const& priority) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->AddDoubleEvent(*(void**)(&name), value, static_cast(priority))); } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::StartStringState(param::hstring const& name, param::hstring const& value, winrt::Windows::Media::Capture::AppCaptureMetadataPriority const& priority) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->StartStringState(*(void**)(&name), *(void**)(&value), static_cast(priority))); } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::StartInt32State(param::hstring const& name, int32_t value, winrt::Windows::Media::Capture::AppCaptureMetadataPriority const& priority) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->StartInt32State(*(void**)(&name), value, static_cast(priority))); } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::StartDoubleState(param::hstring const& name, double value, winrt::Windows::Media::Capture::AppCaptureMetadataPriority const& priority) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->StartDoubleState(*(void**)(&name), value, static_cast(priority))); } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::StopState(param::hstring const& name) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->StopState(*(void**)(&name))); } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::StopAllStates() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->StopAllStates()); } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::RemainingStorageBytesAvailable() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->get_RemainingStorageBytesAvailable(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::MetadataPurged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->add_MetadataPurged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::MetadataPurged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, MetadataPurged(handler)); } template auto consume_Windows_Media_Capture_IAppCaptureMetadataWriter::MetadataPurged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMetadataWriter)->remove_MetadataPurged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppCaptureMicrophoneCaptureStateChangedEventArgs::State() const { winrt::Windows::Media::Capture::AppCaptureMicrophoneCaptureState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMicrophoneCaptureStateChangedEventArgs)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureMicrophoneCaptureStateChangedEventArgs::ErrorCode() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureMicrophoneCaptureStateChangedEventArgs)->get_ErrorCode(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::StopRecording() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->StopRecording()); } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::State() const { winrt::Windows::Media::Capture::AppCaptureRecordingState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::ErrorCode() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->get_ErrorCode(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::Duration() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->get_Duration(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::File() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->get_File(&value)); return winrt::Windows::Storage::StorageFile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::IsFileTruncated() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->get_IsFileTruncated(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::StateChanged(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->add_StateChanged(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::StateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, StateChanged(value)); } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::StateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->remove_StateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::DurationGenerated(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->add_DurationGenerated(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::DurationGenerated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, DurationGenerated(value)); } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::DurationGenerated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->remove_DurationGenerated(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::FileGenerated(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->add_FileGenerated(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::FileGenerated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, FileGenerated(value)); } template auto consume_Windows_Media_Capture_IAppCaptureRecordOperation::FileGenerated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordOperation)->remove_FileGenerated(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppCaptureRecordingStateChangedEventArgs::State() const { winrt::Windows::Media::Capture::AppCaptureRecordingState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordingStateChangedEventArgs)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureRecordingStateChangedEventArgs::ErrorCode() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureRecordingStateChangedEventArgs)->get_ErrorCode(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureServices::Record() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureServices)->Record(&operation)); return winrt::Windows::Media::Capture::AppCaptureRecordOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureServices::RecordTimeSpan(winrt::Windows::Foundation::DateTime const& startTime, winrt::Windows::Foundation::TimeSpan const& duration) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureServices)->RecordTimeSpan(impl::bind_in(startTime), impl::bind_in(duration), &operation)); return winrt::Windows::Media::Capture::AppCaptureRecordOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureServices::CanCapture() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureServices)->get_CanCapture(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureServices::State() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureServices)->get_State(&value)); return winrt::Windows::Media::Capture::AppCaptureState{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::AppCaptureDestinationFolder(winrt::Windows::Storage::StorageFolder const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_AppCaptureDestinationFolder(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::AppCaptureDestinationFolder() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_AppCaptureDestinationFolder(&value)); return winrt::Windows::Storage::StorageFolder{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::AudioEncodingBitrate(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_AudioEncodingBitrate(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::AudioEncodingBitrate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_AudioEncodingBitrate(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsAudioCaptureEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_IsAudioCaptureEnabled(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsAudioCaptureEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_IsAudioCaptureEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::CustomVideoEncodingBitrate(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_CustomVideoEncodingBitrate(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::CustomVideoEncodingBitrate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_CustomVideoEncodingBitrate(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::CustomVideoEncodingHeight(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_CustomVideoEncodingHeight(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::CustomVideoEncodingHeight() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_CustomVideoEncodingHeight(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::CustomVideoEncodingWidth(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_CustomVideoEncodingWidth(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::CustomVideoEncodingWidth() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_CustomVideoEncodingWidth(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::HistoricalBufferLength(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_HistoricalBufferLength(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::HistoricalBufferLength() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_HistoricalBufferLength(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::HistoricalBufferLengthUnit(winrt::Windows::Media::Capture::AppCaptureHistoricalBufferLengthUnit const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_HistoricalBufferLengthUnit(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::HistoricalBufferLengthUnit() const { winrt::Windows::Media::Capture::AppCaptureHistoricalBufferLengthUnit value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_HistoricalBufferLengthUnit(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsHistoricalCaptureEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_IsHistoricalCaptureEnabled(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsHistoricalCaptureEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_IsHistoricalCaptureEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsHistoricalCaptureOnBatteryAllowed(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_IsHistoricalCaptureOnBatteryAllowed(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsHistoricalCaptureOnBatteryAllowed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_IsHistoricalCaptureOnBatteryAllowed(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsHistoricalCaptureOnWirelessDisplayAllowed(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_IsHistoricalCaptureOnWirelessDisplayAllowed(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsHistoricalCaptureOnWirelessDisplayAllowed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_IsHistoricalCaptureOnWirelessDisplayAllowed(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::MaximumRecordLength(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_MaximumRecordLength(impl::bind_in(value))); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::MaximumRecordLength() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_MaximumRecordLength(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::ScreenshotDestinationFolder(winrt::Windows::Storage::StorageFolder const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_ScreenshotDestinationFolder(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::ScreenshotDestinationFolder() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_ScreenshotDestinationFolder(&value)); return winrt::Windows::Storage::StorageFolder{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::VideoEncodingBitrateMode(winrt::Windows::Media::Capture::AppCaptureVideoEncodingBitrateMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_VideoEncodingBitrateMode(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::VideoEncodingBitrateMode() const { winrt::Windows::Media::Capture::AppCaptureVideoEncodingBitrateMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_VideoEncodingBitrateMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::VideoEncodingResolutionMode(winrt::Windows::Media::Capture::AppCaptureVideoEncodingResolutionMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_VideoEncodingResolutionMode(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::VideoEncodingResolutionMode() const { winrt::Windows::Media::Capture::AppCaptureVideoEncodingResolutionMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_VideoEncodingResolutionMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsAppCaptureEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->put_IsAppCaptureEnabled(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsAppCaptureEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_IsAppCaptureEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsCpuConstrained() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_IsCpuConstrained(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsDisabledByPolicy() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_IsDisabledByPolicy(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::IsMemoryConstrained() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_IsMemoryConstrained(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings::HasHardwareEncoder() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings)->get_HasHardwareEncoder(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings2::IsGpuConstrained() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings2)->get_IsGpuConstrained(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings2::AlternateShortcutKeys() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings2)->get_AlternateShortcutKeys(&value)); return winrt::Windows::Media::Capture::AppCaptureAlternateShortcutKeys{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureSettings3::IsMicrophoneCaptureEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings3)->put_IsMicrophoneCaptureEnabled(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings3::IsMicrophoneCaptureEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings3)->get_IsMicrophoneCaptureEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings4::IsMicrophoneCaptureEnabledByDefault(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings4)->put_IsMicrophoneCaptureEnabledByDefault(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings4::IsMicrophoneCaptureEnabledByDefault() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings4)->get_IsMicrophoneCaptureEnabledByDefault(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings4::SystemAudioGain(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings4)->put_SystemAudioGain(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings4::SystemAudioGain() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings4)->get_SystemAudioGain(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings4::MicrophoneGain(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings4)->put_MicrophoneGain(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings4::MicrophoneGain() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings4)->get_MicrophoneGain(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings4::VideoEncodingFrameRateMode(winrt::Windows::Media::Capture::AppCaptureVideoEncodingFrameRateMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings4)->put_VideoEncodingFrameRateMode(static_cast(value))); } template auto consume_Windows_Media_Capture_IAppCaptureSettings4::VideoEncodingFrameRateMode() const { winrt::Windows::Media::Capture::AppCaptureVideoEncodingFrameRateMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings4)->get_VideoEncodingFrameRateMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings5::IsEchoCancellationEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings5)->put_IsEchoCancellationEnabled(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings5::IsEchoCancellationEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings5)->get_IsEchoCancellationEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureSettings5::IsCursorImageCaptureEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings5)->put_IsCursorImageCaptureEnabled(value)); } template auto consume_Windows_Media_Capture_IAppCaptureSettings5::IsCursorImageCaptureEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureSettings5)->get_IsCursorImageCaptureEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureState::IsTargetRunning() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->get_IsTargetRunning(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureState::IsHistoricalCaptureEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->get_IsHistoricalCaptureEnabled(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureState::ShouldCaptureMicrophone() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->get_ShouldCaptureMicrophone(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureState::ShouldCaptureMicrophone(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->put_ShouldCaptureMicrophone(value)); } template auto consume_Windows_Media_Capture_IAppCaptureState::RestartMicrophoneCapture() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->RestartMicrophoneCapture()); } template auto consume_Windows_Media_Capture_IAppCaptureState::MicrophoneCaptureState() const { winrt::Windows::Media::Capture::AppCaptureMicrophoneCaptureState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->get_MicrophoneCaptureState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IAppCaptureState::MicrophoneCaptureError() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->get_MicrophoneCaptureError(&value)); return value; } template auto consume_Windows_Media_Capture_IAppCaptureState::MicrophoneCaptureStateChanged(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->add_MicrophoneCaptureStateChanged(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppCaptureState::MicrophoneCaptureStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, MicrophoneCaptureStateChanged(value)); } template auto consume_Windows_Media_Capture_IAppCaptureState::MicrophoneCaptureStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->remove_MicrophoneCaptureStateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppCaptureState::CaptureTargetClosed(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->add_CaptureTargetClosed(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IAppCaptureState::CaptureTargetClosed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, CaptureTargetClosed(value)); } template auto consume_Windows_Media_Capture_IAppCaptureState::CaptureTargetClosed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureState)->remove_CaptureTargetClosed(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IAppCaptureStatics::GetForCurrentView() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureStatics)->GetForCurrentView(&value)); return winrt::Windows::Media::Capture::AppCapture{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IAppCaptureStatics2::SetAllowedAsync(bool allowed) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IAppCaptureStatics2)->SetAllowedAsync(allowed, &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICameraCaptureUI::PhotoSettings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUI)->get_PhotoSettings(&value)); return winrt::Windows::Media::Capture::CameraCaptureUIPhotoCaptureSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICameraCaptureUI::VideoSettings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUI)->get_VideoSettings(&value)); return winrt::Windows::Media::Capture::CameraCaptureUIVideoCaptureSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICameraCaptureUI::CaptureFileAsync(winrt::Windows::Media::Capture::CameraCaptureUIMode const& mode) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUI)->CaptureFileAsync(static_cast(mode), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICameraCaptureUIPhotoCaptureSettings::Format() const { winrt::Windows::Media::Capture::CameraCaptureUIPhotoFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIPhotoCaptureSettings)->get_Format(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_ICameraCaptureUIPhotoCaptureSettings::Format(winrt::Windows::Media::Capture::CameraCaptureUIPhotoFormat const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIPhotoCaptureSettings)->put_Format(static_cast(value))); } template auto consume_Windows_Media_Capture_ICameraCaptureUIPhotoCaptureSettings::MaxResolution() const { winrt::Windows::Media::Capture::CameraCaptureUIMaxPhotoResolution value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIPhotoCaptureSettings)->get_MaxResolution(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_ICameraCaptureUIPhotoCaptureSettings::MaxResolution(winrt::Windows::Media::Capture::CameraCaptureUIMaxPhotoResolution const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIPhotoCaptureSettings)->put_MaxResolution(static_cast(value))); } template auto consume_Windows_Media_Capture_ICameraCaptureUIPhotoCaptureSettings::CroppedSizeInPixels() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIPhotoCaptureSettings)->get_CroppedSizeInPixels(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_ICameraCaptureUIPhotoCaptureSettings::CroppedSizeInPixels(winrt::Windows::Foundation::Size const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIPhotoCaptureSettings)->put_CroppedSizeInPixels(impl::bind_in(value))); } template auto consume_Windows_Media_Capture_ICameraCaptureUIPhotoCaptureSettings::CroppedAspectRatio() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIPhotoCaptureSettings)->get_CroppedAspectRatio(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_ICameraCaptureUIPhotoCaptureSettings::CroppedAspectRatio(winrt::Windows::Foundation::Size const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIPhotoCaptureSettings)->put_CroppedAspectRatio(impl::bind_in(value))); } template auto consume_Windows_Media_Capture_ICameraCaptureUIPhotoCaptureSettings::AllowCropping() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIPhotoCaptureSettings)->get_AllowCropping(&value)); return value; } template auto consume_Windows_Media_Capture_ICameraCaptureUIPhotoCaptureSettings::AllowCropping(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIPhotoCaptureSettings)->put_AllowCropping(value)); } template auto consume_Windows_Media_Capture_ICameraCaptureUIVideoCaptureSettings::Format() const { winrt::Windows::Media::Capture::CameraCaptureUIVideoFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIVideoCaptureSettings)->get_Format(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_ICameraCaptureUIVideoCaptureSettings::Format(winrt::Windows::Media::Capture::CameraCaptureUIVideoFormat const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIVideoCaptureSettings)->put_Format(static_cast(value))); } template auto consume_Windows_Media_Capture_ICameraCaptureUIVideoCaptureSettings::MaxResolution() const { winrt::Windows::Media::Capture::CameraCaptureUIMaxVideoResolution value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIVideoCaptureSettings)->get_MaxResolution(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_ICameraCaptureUIVideoCaptureSettings::MaxResolution(winrt::Windows::Media::Capture::CameraCaptureUIMaxVideoResolution const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIVideoCaptureSettings)->put_MaxResolution(static_cast(value))); } template auto consume_Windows_Media_Capture_ICameraCaptureUIVideoCaptureSettings::MaxDurationInSeconds() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIVideoCaptureSettings)->get_MaxDurationInSeconds(&value)); return value; } template auto consume_Windows_Media_Capture_ICameraCaptureUIVideoCaptureSettings::MaxDurationInSeconds(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIVideoCaptureSettings)->put_MaxDurationInSeconds(value)); } template auto consume_Windows_Media_Capture_ICameraCaptureUIVideoCaptureSettings::AllowTrimming() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIVideoCaptureSettings)->get_AllowTrimming(&value)); return value; } template auto consume_Windows_Media_Capture_ICameraCaptureUIVideoCaptureSettings::AllowTrimming(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraCaptureUIVideoCaptureSettings)->put_AllowTrimming(value)); } template auto consume_Windows_Media_Capture_ICameraOptionsUIStatics::Show(winrt::Windows::Media::Capture::MediaCapture const& mediaCapture) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICameraOptionsUIStatics)->Show(*(void**)(&mediaCapture))); } template auto consume_Windows_Media_Capture_ICapturedFrame::Width() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrame)->get_Width(&value)); return value; } template auto consume_Windows_Media_Capture_ICapturedFrame::Height() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrame)->get_Height(&value)); return value; } template auto consume_Windows_Media_Capture_ICapturedFrame2::ControlValues() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrame2)->get_ControlValues(&value)); return winrt::Windows::Media::Capture::CapturedFrameControlValues{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrame2::BitmapProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrame2)->get_BitmapProperties(&value)); return winrt::Windows::Graphics::Imaging::BitmapPropertySet{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues::Exposure() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues)->get_Exposure(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues::ExposureCompensation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues)->get_ExposureCompensation(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues::IsoSpeed() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues)->get_IsoSpeed(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues::Focus() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues)->get_Focus(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues::SceneMode() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues)->get_SceneMode(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues::Flashed() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues)->get_Flashed(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues::FlashPowerPercent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues)->get_FlashPowerPercent(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues::WhiteBalance() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues)->get_WhiteBalance(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues::ZoomFactor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues)->get_ZoomFactor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues2::FocusState() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues2)->get_FocusState(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues2::IsoDigitalGain() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues2)->get_IsoDigitalGain(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues2::IsoAnalogGain() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues2)->get_IsoAnalogGain(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues2::SensorFrameRate() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues2)->get_SensorFrameRate(&value)); return winrt::Windows::Media::MediaProperties::MediaRatio{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameControlValues2::WhiteBalanceGain() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameControlValues2)->get_WhiteBalanceGain(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedFrameWithSoftwareBitmap::SoftwareBitmap() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedFrameWithSoftwareBitmap)->get_SoftwareBitmap(&value)); return winrt::Windows::Graphics::Imaging::SoftwareBitmap{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedPhoto::Frame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedPhoto)->get_Frame(&value)); return winrt::Windows::Media::Capture::CapturedFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ICapturedPhoto::Thumbnail() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ICapturedPhoto)->get_Thumbnail(&value)); return winrt::Windows::Media::Capture::CapturedFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IGameBarServices::TargetCapturePolicy() const { winrt::Windows::Media::Capture::GameBarTargetCapturePolicy value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServices)->get_TargetCapturePolicy(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IGameBarServices::EnableCapture() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServices)->EnableCapture()); } template auto consume_Windows_Media_Capture_IGameBarServices::DisableCapture() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServices)->DisableCapture()); } template auto consume_Windows_Media_Capture_IGameBarServices::TargetInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServices)->get_TargetInfo(&value)); return winrt::Windows::Media::Capture::GameBarServicesTargetInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IGameBarServices::SessionId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServices)->get_SessionId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IGameBarServices::AppBroadcastServices() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServices)->get_AppBroadcastServices(&value)); return winrt::Windows::Media::Capture::AppBroadcastServices{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IGameBarServices::AppCaptureServices() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServices)->get_AppCaptureServices(&value)); return winrt::Windows::Media::Capture::AppCaptureServices{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IGameBarServices::CommandReceived(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServices)->add_CommandReceived(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IGameBarServices::CommandReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, CommandReceived(value)); } template auto consume_Windows_Media_Capture_IGameBarServices::CommandReceived(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServices)->remove_CommandReceived(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IGameBarServicesCommandEventArgs::Command() const { winrt::Windows::Media::Capture::GameBarCommand value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServicesCommandEventArgs)->get_Command(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IGameBarServicesCommandEventArgs::Origin() const { winrt::Windows::Media::Capture::GameBarCommandOrigin value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServicesCommandEventArgs)->get_Origin(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IGameBarServicesManager::GameBarServicesCreated(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServicesManager)->add_GameBarServicesCreated(*(void**)(&value), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IGameBarServicesManager::GameBarServicesCreated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, GameBarServicesCreated(value)); } template auto consume_Windows_Media_Capture_IGameBarServicesManager::GameBarServicesCreated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServicesManager)->remove_GameBarServicesCreated(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IGameBarServicesManagerGameBarServicesCreatedEventArgs::GameBarServices() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServicesManagerGameBarServicesCreatedEventArgs)->get_GameBarServices(&value)); return winrt::Windows::Media::Capture::GameBarServices{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IGameBarServicesManagerStatics::GetDefault() const { void* ppInstance{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServicesManagerStatics)->GetDefault(&ppInstance)); return winrt::Windows::Media::Capture::GameBarServicesManager{ ppInstance, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IGameBarServicesTargetInfo::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServicesTargetInfo)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IGameBarServicesTargetInfo::AppId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServicesTargetInfo)->get_AppId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IGameBarServicesTargetInfo::TitleId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServicesTargetInfo)->get_TitleId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IGameBarServicesTargetInfo::DisplayMode() const { winrt::Windows::Media::Capture::GameBarServicesDisplayMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IGameBarServicesTargetInfo)->get_DisplayMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_ILowLagMediaRecording::StartAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagMediaRecording)->StartAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagMediaRecording::StopAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagMediaRecording)->StopAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagMediaRecording::FinishAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagMediaRecording)->FinishAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagMediaRecording2::PauseAsync(winrt::Windows::Media::Devices::MediaCapturePauseBehavior const& behavior) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagMediaRecording2)->PauseAsync(static_cast(behavior), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagMediaRecording2::ResumeAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagMediaRecording2)->ResumeAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagMediaRecording3::PauseWithResultAsync(winrt::Windows::Media::Devices::MediaCapturePauseBehavior const& behavior) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagMediaRecording3)->PauseWithResultAsync(static_cast(behavior), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagMediaRecording3::StopWithResultAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagMediaRecording3)->StopWithResultAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagPhotoCapture::CaptureAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagPhotoCapture)->CaptureAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagPhotoCapture::FinishAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagPhotoCapture)->FinishAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagPhotoSequenceCapture::StartAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagPhotoSequenceCapture)->StartAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagPhotoSequenceCapture::StopAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagPhotoSequenceCapture)->StopAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagPhotoSequenceCapture::FinishAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagPhotoSequenceCapture)->FinishAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_ILowLagPhotoSequenceCapture::PhotoCaptured(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagPhotoSequenceCapture)->add_PhotoCaptured(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_ILowLagPhotoSequenceCapture::PhotoCaptured(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PhotoCaptured(handler)); } template auto consume_Windows_Media_Capture_ILowLagPhotoSequenceCapture::PhotoCaptured(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::ILowLagPhotoSequenceCapture)->remove_PhotoCaptured(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IMediaCapture::InitializeAsync() const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->InitializeAsync(&asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::InitializeAsync(winrt::Windows::Media::Capture::MediaCaptureInitializationSettings const& mediaCaptureInitializationSettings) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->InitializeWithSettingsAsync(*(void**)(&mediaCaptureInitializationSettings), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::StartRecordToStorageFileAsync(winrt::Windows::Media::MediaProperties::MediaEncodingProfile const& encodingProfile, winrt::Windows::Storage::IStorageFile const& file) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->StartRecordToStorageFileAsync(*(void**)(&encodingProfile), *(void**)(&file), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::StartRecordToStreamAsync(winrt::Windows::Media::MediaProperties::MediaEncodingProfile const& encodingProfile, winrt::Windows::Storage::Streams::IRandomAccessStream const& stream) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->StartRecordToStreamAsync(*(void**)(&encodingProfile), *(void**)(&stream), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::StartRecordToCustomSinkAsync(winrt::Windows::Media::MediaProperties::MediaEncodingProfile const& encodingProfile, winrt::Windows::Media::IMediaExtension const& customMediaSink) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->StartRecordToCustomSinkAsync(*(void**)(&encodingProfile), *(void**)(&customMediaSink), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::StartRecordToCustomSinkAsync(winrt::Windows::Media::MediaProperties::MediaEncodingProfile const& encodingProfile, param::hstring const& customSinkActivationId, winrt::Windows::Foundation::Collections::IPropertySet const& customSinkSettings) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->StartRecordToCustomSinkIdAsync(*(void**)(&encodingProfile), *(void**)(&customSinkActivationId), *(void**)(&customSinkSettings), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::StopRecordAsync() const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->StopRecordAsync(&asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::CapturePhotoToStorageFileAsync(winrt::Windows::Media::MediaProperties::ImageEncodingProperties const& type, winrt::Windows::Storage::IStorageFile const& file) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->CapturePhotoToStorageFileAsync(*(void**)(&type), *(void**)(&file), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::CapturePhotoToStreamAsync(winrt::Windows::Media::MediaProperties::ImageEncodingProperties const& type, winrt::Windows::Storage::Streams::IRandomAccessStream const& stream) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->CapturePhotoToStreamAsync(*(void**)(&type), *(void**)(&stream), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::AddEffectAsync(winrt::Windows::Media::Capture::MediaStreamType const& mediaStreamType, param::hstring const& effectActivationID, winrt::Windows::Foundation::Collections::IPropertySet const& effectSettings) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->AddEffectAsync(static_cast(mediaStreamType), *(void**)(&effectActivationID), *(void**)(&effectSettings), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::ClearEffectsAsync(winrt::Windows::Media::Capture::MediaStreamType const& mediaStreamType) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->ClearEffectsAsync(static_cast(mediaStreamType), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::SetEncoderProperty(winrt::Windows::Media::Capture::MediaStreamType const& mediaStreamType, winrt::guid const& propertyId, winrt::Windows::Foundation::IInspectable const& propertyValue) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->SetEncoderProperty(static_cast(mediaStreamType), impl::bind_in(propertyId), *(void**)(&propertyValue))); } template auto consume_Windows_Media_Capture_IMediaCapture::GetEncoderProperty(winrt::Windows::Media::Capture::MediaStreamType const& mediaStreamType, winrt::guid const& propertyId) const { void* propertyValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->GetEncoderProperty(static_cast(mediaStreamType), impl::bind_in(propertyId), &propertyValue)); return winrt::Windows::Foundation::IInspectable{ propertyValue, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::Failed(winrt::Windows::Media::Capture::MediaCaptureFailedEventHandler const& errorEventHandler) const { winrt::event_token eventCookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->add_Failed(*(void**)(&errorEventHandler), put_abi(eventCookie))); return eventCookie; } template auto consume_Windows_Media_Capture_IMediaCapture::Failed(auto_revoke_t, winrt::Windows::Media::Capture::MediaCaptureFailedEventHandler const& errorEventHandler) const { return impl::make_event_revoker(this, Failed(errorEventHandler)); } template auto consume_Windows_Media_Capture_IMediaCapture::Failed(winrt::event_token const& eventCookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->remove_Failed(impl::bind_in(eventCookie)); } template auto consume_Windows_Media_Capture_IMediaCapture::RecordLimitationExceeded(winrt::Windows::Media::Capture::RecordLimitationExceededEventHandler const& recordLimitationExceededEventHandler) const { winrt::event_token eventCookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->add_RecordLimitationExceeded(*(void**)(&recordLimitationExceededEventHandler), put_abi(eventCookie))); return eventCookie; } template auto consume_Windows_Media_Capture_IMediaCapture::RecordLimitationExceeded(auto_revoke_t, winrt::Windows::Media::Capture::RecordLimitationExceededEventHandler const& recordLimitationExceededEventHandler) const { return impl::make_event_revoker(this, RecordLimitationExceeded(recordLimitationExceededEventHandler)); } template auto consume_Windows_Media_Capture_IMediaCapture::RecordLimitationExceeded(winrt::event_token const& eventCookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->remove_RecordLimitationExceeded(impl::bind_in(eventCookie)); } template auto consume_Windows_Media_Capture_IMediaCapture::MediaCaptureSettings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->get_MediaCaptureSettings(&value)); return winrt::Windows::Media::Capture::MediaCaptureSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::AudioDeviceController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->get_AudioDeviceController(&value)); return winrt::Windows::Media::Devices::AudioDeviceController{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::VideoDeviceController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->get_VideoDeviceController(&value)); return winrt::Windows::Media::Devices::VideoDeviceController{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture::SetPreviewMirroring(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->SetPreviewMirroring(value)); } template auto consume_Windows_Media_Capture_IMediaCapture::GetPreviewMirroring() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->GetPreviewMirroring(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCapture::SetPreviewRotation(winrt::Windows::Media::Capture::VideoRotation const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->SetPreviewRotation(static_cast(value))); } template auto consume_Windows_Media_Capture_IMediaCapture::GetPreviewRotation() const { winrt::Windows::Media::Capture::VideoRotation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->GetPreviewRotation(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCapture::SetRecordRotation(winrt::Windows::Media::Capture::VideoRotation const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->SetRecordRotation(static_cast(value))); } template auto consume_Windows_Media_Capture_IMediaCapture::GetRecordRotation() const { winrt::Windows::Media::Capture::VideoRotation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture)->GetRecordRotation(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCapture2::PrepareLowLagRecordToStorageFileAsync(winrt::Windows::Media::MediaProperties::MediaEncodingProfile const& encodingProfile, winrt::Windows::Storage::IStorageFile const& file) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture2)->PrepareLowLagRecordToStorageFileAsync(*(void**)(&encodingProfile), *(void**)(&file), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture2::PrepareLowLagRecordToStreamAsync(winrt::Windows::Media::MediaProperties::MediaEncodingProfile const& encodingProfile, winrt::Windows::Storage::Streams::IRandomAccessStream const& stream) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture2)->PrepareLowLagRecordToStreamAsync(*(void**)(&encodingProfile), *(void**)(&stream), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture2::PrepareLowLagRecordToCustomSinkAsync(winrt::Windows::Media::MediaProperties::MediaEncodingProfile const& encodingProfile, winrt::Windows::Media::IMediaExtension const& customMediaSink) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture2)->PrepareLowLagRecordToCustomSinkAsync(*(void**)(&encodingProfile), *(void**)(&customMediaSink), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture2::PrepareLowLagRecordToCustomSinkAsync(winrt::Windows::Media::MediaProperties::MediaEncodingProfile const& encodingProfile, param::hstring const& customSinkActivationId, winrt::Windows::Foundation::Collections::IPropertySet const& customSinkSettings) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture2)->PrepareLowLagRecordToCustomSinkIdAsync(*(void**)(&encodingProfile), *(void**)(&customSinkActivationId), *(void**)(&customSinkSettings), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture2::PrepareLowLagPhotoCaptureAsync(winrt::Windows::Media::MediaProperties::ImageEncodingProperties const& type) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture2)->PrepareLowLagPhotoCaptureAsync(*(void**)(&type), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture2::PrepareLowLagPhotoSequenceCaptureAsync(winrt::Windows::Media::MediaProperties::ImageEncodingProperties const& type) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture2)->PrepareLowLagPhotoSequenceCaptureAsync(*(void**)(&type), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture2::SetEncodingPropertiesAsync(winrt::Windows::Media::Capture::MediaStreamType const& mediaStreamType, winrt::Windows::Media::MediaProperties::IMediaEncodingProperties const& mediaEncodingProperties, winrt::Windows::Media::MediaProperties::MediaPropertySet const& encoderProperties) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture2)->SetEncodingPropertiesAsync(static_cast(mediaStreamType), *(void**)(&mediaEncodingProperties), *(void**)(&encoderProperties), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture3::PrepareVariablePhotoSequenceCaptureAsync(winrt::Windows::Media::MediaProperties::ImageEncodingProperties const& type) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture3)->PrepareVariablePhotoSequenceCaptureAsync(*(void**)(&type), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture3::FocusChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture3)->add_FocusChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IMediaCapture3::FocusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, FocusChanged(handler)); } template auto consume_Windows_Media_Capture_IMediaCapture3::FocusChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture3)->remove_FocusChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IMediaCapture3::PhotoConfirmationCaptured(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture3)->add_PhotoConfirmationCaptured(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IMediaCapture3::PhotoConfirmationCaptured(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PhotoConfirmationCaptured(handler)); } template auto consume_Windows_Media_Capture_IMediaCapture3::PhotoConfirmationCaptured(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture3)->remove_PhotoConfirmationCaptured(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IMediaCapture4::AddAudioEffectAsync(winrt::Windows::Media::Effects::IAudioEffectDefinition const& definition) const { void* op{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->AddAudioEffectAsync(*(void**)(&definition), &op)); return winrt::Windows::Foundation::IAsyncOperation{ op, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture4::AddVideoEffectAsync(winrt::Windows::Media::Effects::IVideoEffectDefinition const& definition, winrt::Windows::Media::Capture::MediaStreamType const& mediaStreamType) const { void* op{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->AddVideoEffectAsync(*(void**)(&definition), static_cast(mediaStreamType), &op)); return winrt::Windows::Foundation::IAsyncOperation{ op, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture4::PauseRecordAsync(winrt::Windows::Media::Devices::MediaCapturePauseBehavior const& behavior) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->PauseRecordAsync(static_cast(behavior), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture4::ResumeRecordAsync() const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->ResumeRecordAsync(&asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture4::CameraStreamStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->add_CameraStreamStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IMediaCapture4::CameraStreamStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CameraStreamStateChanged(handler)); } template auto consume_Windows_Media_Capture_IMediaCapture4::CameraStreamStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->remove_CameraStreamStateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IMediaCapture4::CameraStreamState() const { winrt::Windows::Media::Devices::CameraStreamState streamState{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->get_CameraStreamState(reinterpret_cast(&streamState))); return streamState; } template auto consume_Windows_Media_Capture_IMediaCapture4::GetPreviewFrameAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->GetPreviewFrameAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture4::GetPreviewFrameAsync(winrt::Windows::Media::VideoFrame const& destination) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->GetPreviewFrameCopyAsync(*(void**)(&destination), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture4::ThermalStatusChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->add_ThermalStatusChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IMediaCapture4::ThermalStatusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ThermalStatusChanged(handler)); } template auto consume_Windows_Media_Capture_IMediaCapture4::ThermalStatusChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->remove_ThermalStatusChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IMediaCapture4::ThermalStatus() const { winrt::Windows::Media::Capture::MediaCaptureThermalStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->get_ThermalStatus(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCapture4::PrepareAdvancedPhotoCaptureAsync(winrt::Windows::Media::MediaProperties::ImageEncodingProperties const& encodingProperties) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture4)->PrepareAdvancedPhotoCaptureAsync(*(void**)(&encodingProperties), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture5::RemoveEffectAsync(winrt::Windows::Media::IMediaExtension const& effect) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture5)->RemoveEffectAsync(*(void**)(&effect), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture5::PauseRecordWithResultAsync(winrt::Windows::Media::Devices::MediaCapturePauseBehavior const& behavior) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture5)->PauseRecordWithResultAsync(static_cast(behavior), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture5::StopRecordWithResultAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture5)->StopRecordWithResultAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture5::FrameSources() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture5)->get_FrameSources(&value)); return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture5::CreateFrameReaderAsync(winrt::Windows::Media::Capture::Frames::MediaFrameSource const& inputSource) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture5)->CreateFrameReaderAsync(*(void**)(&inputSource), &value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture5::CreateFrameReaderAsync(winrt::Windows::Media::Capture::Frames::MediaFrameSource const& inputSource, param::hstring const& outputSubtype) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture5)->CreateFrameReaderWithSubtypeAsync(*(void**)(&inputSource), *(void**)(&outputSubtype), &value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture5::CreateFrameReaderAsync(winrt::Windows::Media::Capture::Frames::MediaFrameSource const& inputSource, param::hstring const& outputSubtype, winrt::Windows::Graphics::Imaging::BitmapSize const& outputSize) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture5)->CreateFrameReaderWithSubtypeAndSizeAsync(*(void**)(&inputSource), *(void**)(&outputSubtype), impl::bind_in(outputSize), &value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture6::CaptureDeviceExclusiveControlStatusChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture6)->add_CaptureDeviceExclusiveControlStatusChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IMediaCapture6::CaptureDeviceExclusiveControlStatusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CaptureDeviceExclusiveControlStatusChanged(handler)); } template auto consume_Windows_Media_Capture_IMediaCapture6::CaptureDeviceExclusiveControlStatusChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture6)->remove_CaptureDeviceExclusiveControlStatusChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IMediaCapture6::CreateMultiSourceFrameReaderAsync(param::async_iterable const& inputSources) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture6)->CreateMultiSourceFrameReaderAsync(*(void**)(&inputSources), &value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapture7::CreateRelativePanelWatcher(winrt::Windows::Media::Capture::StreamingCaptureMode const& captureMode, winrt::Windows::UI::WindowManagement::DisplayRegion const& displayRegion) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapture7)->CreateRelativePanelWatcher(static_cast(captureMode), *(void**)(&displayRegion), &result)); return winrt::Windows::Media::Capture::MediaCaptureRelativePanelWatcher{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs::DeviceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs)->get_DeviceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs::Status() const { winrt::Windows::Media::Capture::MediaCaptureDeviceExclusiveControlStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureFailedEventArgs::Message() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureFailedEventArgs)->get_Message(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureFailedEventArgs::Code() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureFailedEventArgs)->get_Code(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureFocusChangedEventArgs::FocusState() const { winrt::Windows::Media::Devices::MediaCaptureFocusState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureFocusChangedEventArgs)->get_FocusState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings::AudioDeviceId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings)->put_AudioDeviceId(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings::AudioDeviceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings)->get_AudioDeviceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings::VideoDeviceId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings)->put_VideoDeviceId(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings::VideoDeviceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings)->get_VideoDeviceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings::StreamingCaptureMode(winrt::Windows::Media::Capture::StreamingCaptureMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings)->put_StreamingCaptureMode(static_cast(value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings::StreamingCaptureMode() const { winrt::Windows::Media::Capture::StreamingCaptureMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings)->get_StreamingCaptureMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings::PhotoCaptureSource(winrt::Windows::Media::Capture::PhotoCaptureSource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings)->put_PhotoCaptureSource(static_cast(value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings::PhotoCaptureSource() const { winrt::Windows::Media::Capture::PhotoCaptureSource value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings)->get_PhotoCaptureSource(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings2::MediaCategory(winrt::Windows::Media::Capture::MediaCategory const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings2)->put_MediaCategory(static_cast(value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings2::MediaCategory() const { winrt::Windows::Media::Capture::MediaCategory value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings2)->get_MediaCategory(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings2::AudioProcessing(winrt::Windows::Media::AudioProcessing const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings2)->put_AudioProcessing(static_cast(value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings2::AudioProcessing() const { winrt::Windows::Media::AudioProcessing value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings2)->get_AudioProcessing(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings3::AudioSource(winrt::Windows::Media::Core::IMediaSource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings3)->put_AudioSource(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings3::AudioSource() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings3)->get_AudioSource(&value)); return winrt::Windows::Media::Core::IMediaSource{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings3::VideoSource(winrt::Windows::Media::Core::IMediaSource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings3)->put_VideoSource(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings3::VideoSource() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings3)->get_VideoSource(&value)); return winrt::Windows::Media::Core::IMediaSource{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings4::VideoProfile() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings4)->get_VideoProfile(&value)); return winrt::Windows::Media::Capture::MediaCaptureVideoProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings4::VideoProfile(winrt::Windows::Media::Capture::MediaCaptureVideoProfile const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings4)->put_VideoProfile(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings4::PreviewMediaDescription() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings4)->get_PreviewMediaDescription(&value)); return winrt::Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings4::PreviewMediaDescription(winrt::Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings4)->put_PreviewMediaDescription(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings4::RecordMediaDescription() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings4)->get_RecordMediaDescription(&value)); return winrt::Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings4::RecordMediaDescription(winrt::Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings4)->put_RecordMediaDescription(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings4::PhotoMediaDescription() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings4)->get_PhotoMediaDescription(&value)); return winrt::Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings4::PhotoMediaDescription(winrt::Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings4)->put_PhotoMediaDescription(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings5::SourceGroup() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings5)->get_SourceGroup(&value)); return winrt::Windows::Media::Capture::Frames::MediaFrameSourceGroup{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings5::SourceGroup(winrt::Windows::Media::Capture::Frames::MediaFrameSourceGroup const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings5)->put_SourceGroup(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings5::SharingMode() const { winrt::Windows::Media::Capture::MediaCaptureSharingMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings5)->get_SharingMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings5::SharingMode(winrt::Windows::Media::Capture::MediaCaptureSharingMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings5)->put_SharingMode(static_cast(value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings5::MemoryPreference() const { winrt::Windows::Media::Capture::MediaCaptureMemoryPreference value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings5)->get_MemoryPreference(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings5::MemoryPreference(winrt::Windows::Media::Capture::MediaCaptureMemoryPreference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings5)->put_MemoryPreference(static_cast(value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings6::AlwaysPlaySystemShutterSound() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings6)->get_AlwaysPlaySystemShutterSound(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings6::AlwaysPlaySystemShutterSound(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings6)->put_AlwaysPlaySystemShutterSound(value)); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings7::DeviceUriPasswordCredential() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings7)->get_DeviceUriPasswordCredential(&value)); return winrt::Windows::Security::Credentials::PasswordCredential{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings7::DeviceUriPasswordCredential(winrt::Windows::Security::Credentials::PasswordCredential const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings7)->put_DeviceUriPasswordCredential(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings7::DeviceUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings7)->get_DeviceUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureInitializationSettings7::DeviceUri(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureInitializationSettings7)->put_DeviceUri(*(void**)(&value))); } template auto consume_Windows_Media_Capture_IMediaCapturePauseResult::LastFrame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapturePauseResult)->get_LastFrame(&value)); return winrt::Windows::Media::VideoFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCapturePauseResult::RecordDuration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCapturePauseResult)->get_RecordDuration(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureRelativePanelWatcher::RelativePanel() const { winrt::Windows::Devices::Enumeration::Panel value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureRelativePanelWatcher)->get_RelativePanel(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureRelativePanelWatcher::Changed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureRelativePanelWatcher)->add_Changed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Capture_IMediaCaptureRelativePanelWatcher::Changed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Changed(handler)); } template auto consume_Windows_Media_Capture_IMediaCaptureRelativePanelWatcher::Changed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureRelativePanelWatcher)->remove_Changed(impl::bind_in(token)); } template auto consume_Windows_Media_Capture_IMediaCaptureRelativePanelWatcher::Start() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureRelativePanelWatcher)->Start()); } template auto consume_Windows_Media_Capture_IMediaCaptureRelativePanelWatcher::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureRelativePanelWatcher)->Stop()); } template auto consume_Windows_Media_Capture_IMediaCaptureSettings::AudioDeviceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings)->get_AudioDeviceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings::VideoDeviceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings)->get_VideoDeviceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings::StreamingCaptureMode() const { winrt::Windows::Media::Capture::StreamingCaptureMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings)->get_StreamingCaptureMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings::PhotoCaptureSource() const { winrt::Windows::Media::Capture::PhotoCaptureSource value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings)->get_PhotoCaptureSource(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings::VideoDeviceCharacteristic() const { winrt::Windows::Media::Capture::VideoDeviceCharacteristic value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings)->get_VideoDeviceCharacteristic(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings2::ConcurrentRecordAndPhotoSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings2)->get_ConcurrentRecordAndPhotoSupported(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings2::ConcurrentRecordAndPhotoSequenceSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings2)->get_ConcurrentRecordAndPhotoSequenceSupported(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings2::CameraSoundRequiredForRegion() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings2)->get_CameraSoundRequiredForRegion(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings2::Horizontal35mmEquivalentFocalLength() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings2)->get_Horizontal35mmEquivalentFocalLength(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings2::PitchOffsetDegrees() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings2)->get_PitchOffsetDegrees(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings2::Vertical35mmEquivalentFocalLength() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings2)->get_Vertical35mmEquivalentFocalLength(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings2::MediaCategory() const { winrt::Windows::Media::Capture::MediaCategory value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings2)->get_MediaCategory(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings2::AudioProcessing() const { winrt::Windows::Media::AudioProcessing value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings2)->get_AudioProcessing(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureSettings3::Direct3D11Device() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureSettings3)->get_Direct3D11Device(&value)); return winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureStatics::IsVideoProfileSupported(param::hstring const& videoDeviceId) const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureStatics)->IsVideoProfileSupported(*(void**)(&videoDeviceId), &value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureStatics::FindAllVideoProfiles(param::hstring const& videoDeviceId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureStatics)->FindAllVideoProfiles(*(void**)(&videoDeviceId), &value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureStatics::FindConcurrentProfiles(param::hstring const& videoDeviceId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureStatics)->FindConcurrentProfiles(*(void**)(&videoDeviceId), &value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureStatics::FindKnownVideoProfiles(param::hstring const& videoDeviceId, winrt::Windows::Media::Capture::KnownVideoProfile const& name) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureStatics)->FindKnownVideoProfiles(*(void**)(&videoDeviceId), static_cast(name), &value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureStopResult::LastFrame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureStopResult)->get_LastFrame(&value)); return winrt::Windows::Media::VideoFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureStopResult::RecordDuration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureStopResult)->get_RecordDuration(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoPreview::StartPreviewAsync() const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoPreview)->StartPreviewAsync(&asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoPreview::StartPreviewToCustomSinkAsync(winrt::Windows::Media::MediaProperties::MediaEncodingProfile const& encodingProfile, winrt::Windows::Media::IMediaExtension const& customMediaSink) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoPreview)->StartPreviewToCustomSinkAsync(*(void**)(&encodingProfile), *(void**)(&customMediaSink), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoPreview::StartPreviewToCustomSinkAsync(winrt::Windows::Media::MediaProperties::MediaEncodingProfile const& encodingProfile, param::hstring const& customSinkActivationId, winrt::Windows::Foundation::Collections::IPropertySet const& customSinkSettings) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoPreview)->StartPreviewToCustomSinkIdAsync(*(void**)(&encodingProfile), *(void**)(&customSinkActivationId), *(void**)(&customSinkSettings), &asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoPreview::StopPreviewAsync() const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoPreview)->StopPreviewAsync(&asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfile::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfile)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfile::VideoDeviceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfile)->get_VideoDeviceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfile::SupportedPreviewMediaDescription() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfile)->get_SupportedPreviewMediaDescription(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfile::SupportedRecordMediaDescription() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfile)->get_SupportedRecordMediaDescription(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfile::SupportedPhotoMediaDescription() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfile)->get_SupportedPhotoMediaDescription(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfile::GetConcurrency() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfile)->GetConcurrency(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfile2::FrameSourceInfos() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfile2)->get_FrameSourceInfos(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfile2::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfile2)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfileMediaDescription::Width() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfileMediaDescription)->get_Width(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfileMediaDescription::Height() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfileMediaDescription)->get_Height(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfileMediaDescription::FrameRate() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfileMediaDescription)->get_FrameRate(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfileMediaDescription::IsVariablePhotoSequenceSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfileMediaDescription)->get_IsVariablePhotoSequenceSupported(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfileMediaDescription::IsHdrVideoSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfileMediaDescription)->get_IsHdrVideoSupported(&value)); return value; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfileMediaDescription2::Subtype() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfileMediaDescription2)->get_Subtype(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IMediaCaptureVideoProfileMediaDescription2::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IMediaCaptureVideoProfileMediaDescription2)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IOptionalReferencePhotoCapturedEventArgs::Frame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IOptionalReferencePhotoCapturedEventArgs)->get_Frame(&value)); return winrt::Windows::Media::Capture::CapturedFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IOptionalReferencePhotoCapturedEventArgs::Context() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IOptionalReferencePhotoCapturedEventArgs)->get_Context(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IPhotoCapturedEventArgs::Frame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IPhotoCapturedEventArgs)->get_Frame(&value)); return winrt::Windows::Media::Capture::CapturedFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IPhotoCapturedEventArgs::Thumbnail() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IPhotoCapturedEventArgs)->get_Thumbnail(&value)); return winrt::Windows::Media::Capture::CapturedFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IPhotoCapturedEventArgs::CaptureTimeOffset() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IPhotoCapturedEventArgs)->get_CaptureTimeOffset(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IPhotoConfirmationCapturedEventArgs::Frame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IPhotoConfirmationCapturedEventArgs)->get_Frame(&value)); return winrt::Windows::Media::Capture::CapturedFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IPhotoConfirmationCapturedEventArgs::CaptureTimeOffset() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IPhotoConfirmationCapturedEventArgs)->get_CaptureTimeOffset(put_abi(value))); return value; } template auto consume_Windows_Media_Capture_IVideoStreamConfiguration::InputProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IVideoStreamConfiguration)->get_InputProperties(&value)); return winrt::Windows::Media::MediaProperties::VideoEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Capture_IVideoStreamConfiguration::OutputProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Capture::IVideoStreamConfiguration)->get_OutputProperties(&value)); return winrt::Windows::Media::MediaProperties::VideoEncodingProperties{ value, take_ownership_from_abi }; } template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* errorEventArgs) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&errorEventArgs)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender) noexcept final try { (*this)(*reinterpret_cast(&sender)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Frame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Frame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Mode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Context(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Context()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FrameBoundsRelativeToReferencePhoto(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FrameBoundsRelativeToReferencePhoto()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CaptureAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CaptureAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CaptureWithContextAsync(void* context, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CaptureAsync(*reinterpret_cast(&context))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_OptionalReferencePhotoCaptured(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().OptionalReferencePhotoCaptured(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_OptionalReferencePhotoCaptured(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().OptionalReferencePhotoCaptured(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_AllPhotosCaptured(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AllPhotosCaptured(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AllPhotosCaptured(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AllPhotosCaptured(*reinterpret_cast(&token)); return 0; } int32_t __stdcall FinishAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().FinishAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_PlugInState(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PlugInState(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PlugInState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PlugInState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SignInInfo(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SignInInfo(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SignInInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignInInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StreamInfo(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StreamInfo(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StreamInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StreamInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BroadcastTitle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BroadcastTitle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ViewerCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ViewerCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewerCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewerCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TerminateBroadcast(int32_t reason, uint32_t providerSpecificReason) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TerminateBroadcast(*reinterpret_cast(&reason), providerSpecificReason); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_HeartbeatRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().HeartbeatRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_HeartbeatRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().HeartbeatRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_TitleId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TitleId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_BroadcastTitle(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BroadcastTitle(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BroadcastLanguage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BroadcastLanguage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BroadcastLanguage(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BroadcastLanguage(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BroadcastChannel(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BroadcastChannel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BroadcastChannel(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BroadcastChannel(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_BroadcastTitleChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().BroadcastTitleChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_BroadcastTitleChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().BroadcastTitleChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_BroadcastLanguageChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().BroadcastLanguageChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_BroadcastLanguageChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().BroadcastLanguageChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_BroadcastChannelChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().BroadcastChannelChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_BroadcastChannelChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().BroadcastChannelChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SignInState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignInState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OAuthRequestUri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OAuthRequestUri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OAuthRequestUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OAuthRequestUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OAuthCallbackUri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OAuthCallbackUri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OAuthCallbackUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OAuthCallbackUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AuthenticationResult(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AuthenticationResult()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UserName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UserName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_SignInStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SignInStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SignInStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SignInStateChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_UserNameChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().UserNameChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_UserNameChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().UserNameChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_StreamState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StreamState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DesiredVideoEncodingBitrate(uint64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DesiredVideoEncodingBitrate(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DesiredVideoEncodingBitrate(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DesiredVideoEncodingBitrate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BandwidthTestBitrate(uint64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BandwidthTestBitrate(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BandwidthTestBitrate(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BandwidthTestBitrate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AudioCodec(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AudioCodec(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioCodec(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioCodec()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BroadcastStreamReader(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BroadcastStreamReader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_StreamStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StreamStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StreamStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StreamStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_VideoEncodingResolutionChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().VideoEncodingResolutionChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_VideoEncodingResolutionChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().VideoEncodingResolutionChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_VideoEncodingBitrateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().VideoEncodingBitrateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_VideoEncodingBitrateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().VideoEncodingBitrateChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ReportProblemWithStream() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportProblemWithStream(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsBroadcastEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsBroadcastEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDisabledByPolicy(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDisabledByPolicy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsGpuConstrained(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsGpuConstrained()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasHardwareEncoder(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasHardwareEncoder()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsAudioCaptureEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsAudioCaptureEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAudioCaptureEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAudioCaptureEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsMicrophoneCaptureEnabledByDefault(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsMicrophoneCaptureEnabledByDefault(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMicrophoneCaptureEnabledByDefault(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMicrophoneCaptureEnabledByDefault()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsEchoCancellationEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsEchoCancellationEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsEchoCancellationEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEchoCancellationEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SystemAudioGain(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SystemAudioGain(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemAudioGain(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemAudioGain()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MicrophoneGain(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MicrophoneGain(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MicrophoneGain(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MicrophoneGain()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsCameraCaptureEnabledByDefault(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsCameraCaptureEnabledByDefault(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCameraCaptureEnabledByDefault(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCameraCaptureEnabledByDefault()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedCameraId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedCameraId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedCameraId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedCameraId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CameraOverlayLocation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CameraOverlayLocation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CameraOverlayLocation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CameraOverlayLocation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CameraOverlaySize(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CameraOverlaySize(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CameraOverlaySize(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CameraOverlaySize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsCursorImageCaptureEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsCursorImageCaptureEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCursorImageCaptureEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCursorImageCaptureEnabled()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetGlobalSettings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetGlobalSettings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ApplyGlobalSettings(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ApplyGlobalSettings(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetProviderSettings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetProviderSettings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ApplyProviderSettings(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ApplyProviderSettings(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AppId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProviderSettings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProviderSettings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Logo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Logo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsBroadcastProviderAvailable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsBroadcastProviderAvailable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PlugInList(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().PlugInList()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DefaultPlugIn(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DefaultPlugIn()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DefaultPlugIn(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DefaultPlugIn(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDefault(void** ppInstance) noexcept final try { clear_abi(ppInstance); typename D::abi_guard guard(this->shim()); *ppInstance = detach_from(this->shim().GetDefault()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetForUser(void* user, void** ppInstance) noexcept final try { clear_abi(ppInstance); typename D::abi_guard guard(this->shim()); *ppInstance = detach_from(this->shim().GetForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PlugInState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PlugInState()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall StopPreview() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopPreview(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PreviewState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreviewState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_PreviewStateChanged(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PreviewStateChanged(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PreviewStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PreviewStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_PreviewStreamReader(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreviewStreamReader()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PreviewState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreviewState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_VideoWidth(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoHeight(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoStride(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoStride()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoBitmapPixelFormat(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoBitmapPixelFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoBitmapAlphaMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoBitmapAlphaMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryGetNextVideoFrame(void** frame) noexcept final try { clear_abi(frame); typename D::abi_guard guard(this->shim()); *frame = detach_from(this->shim().TryGetNextVideoFrame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_VideoFrameArrived(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().VideoFrameArrived(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_VideoFrameArrived(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().VideoFrameArrived(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_VideoHeader(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoHeader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoBuffer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoBuffer()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AbsoluteTimestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AbsoluteTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RelativeTimestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RelativeTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Duration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FrameId(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrameId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_DefaultBroadcastTitle(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DefaultBroadcastTitle(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DefaultBroadcastTitle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DefaultBroadcastTitle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AudioEncodingBitrate(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AudioEncodingBitrate(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioEncodingBitrate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioEncodingBitrate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CustomVideoEncodingBitrate(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CustomVideoEncodingBitrate(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomVideoEncodingBitrate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomVideoEncodingBitrate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CustomVideoEncodingHeight(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CustomVideoEncodingHeight(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomVideoEncodingHeight(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomVideoEncodingHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CustomVideoEncodingWidth(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CustomVideoEncodingWidth(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomVideoEncodingWidth(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomVideoEncodingWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VideoEncodingBitrateMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VideoEncodingBitrateMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoEncodingBitrateMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoEncodingBitrateMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VideoEncodingResolutionMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VideoEncodingResolutionMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoEncodingResolutionMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoEncodingResolutionMode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CaptureTargetType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CaptureTargetType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CaptureTargetType(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CaptureTargetType(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BroadcastTitle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BroadcastTitle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BroadcastTitle(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BroadcastTitle(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BroadcastLanguage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BroadcastLanguage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BroadcastLanguage(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BroadcastLanguage(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanCapture(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanCapture()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EnterBroadcastModeAsync(void* plugIn, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().EnterBroadcastModeAsync(*reinterpret_cast(&plugIn))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ExitBroadcastMode(int32_t reason) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExitBroadcastMode(*reinterpret_cast(&reason)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartBroadcast() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartBroadcast(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PauseBroadcast() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PauseBroadcast(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResumeBroadcast() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResumeBroadcast(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPreview(winrt::Windows::Foundation::Size desiredSize, void** preview) noexcept final try { clear_abi(preview); typename D::abi_guard guard(this->shim()); *preview = detach_from(this->shim().StartPreview(*reinterpret_cast(&desiredSize))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_State(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SignInState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignInState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Result(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Result()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsCaptureTargetRunning(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCaptureTargetRunning()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewerCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewerCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShouldCaptureMicrophone(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldCaptureMicrophone()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShouldCaptureMicrophone(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShouldCaptureMicrophone(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RestartMicrophoneCapture() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RestartMicrophoneCapture(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShouldCaptureCamera(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldCaptureCamera()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShouldCaptureCamera(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShouldCaptureCamera(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RestartCameraCapture() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RestartCameraCapture(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EncodedVideoSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EncodedVideoSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MicrophoneCaptureState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MicrophoneCaptureState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MicrophoneCaptureError(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MicrophoneCaptureError()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CameraCaptureState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CameraCaptureState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CameraCaptureError(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CameraCaptureError()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StreamState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StreamState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PlugInState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PlugInState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OAuthRequestUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OAuthRequestUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OAuthCallbackUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OAuthCallbackUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AuthenticationResult(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AuthenticationResult()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AuthenticationResult(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AuthenticationResult(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SignInState(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SignInState(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SignInState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignInState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TerminationReason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TerminationReason()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TerminationReasonPlugInSpecific(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TerminationReasonPlugInSpecific()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ViewerCountChanged(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ViewerCountChanged(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ViewerCountChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ViewerCountChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_MicrophoneCaptureStateChanged(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().MicrophoneCaptureStateChanged(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_MicrophoneCaptureStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().MicrophoneCaptureStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_CameraCaptureStateChanged(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CameraCaptureStateChanged(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CameraCaptureStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CameraCaptureStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PlugInStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PlugInStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PlugInStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PlugInStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_StreamStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StreamStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StreamStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StreamStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_CaptureTargetClosed(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CaptureTargetClosed(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CaptureTargetClosed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CaptureTargetClosed(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AudioHeader(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioHeader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioBuffer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioBuffer()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AbsoluteTimestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AbsoluteTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RelativeTimestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RelativeTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Duration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasDiscontinuity(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasDiscontinuity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FrameId(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrameId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AudioChannels(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioChannels()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioSampleRate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioSampleRate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioAacSequence(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioAacSequence()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioBitrate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioBitrate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryGetNextAudioFrame(void** frame) noexcept final try { clear_abi(frame); typename D::abi_guard guard(this->shim()); *frame = detach_from(this->shim().TryGetNextAudioFrame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoWidth(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoHeight(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoBitrate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoBitrate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryGetNextVideoFrame(void** frame) noexcept final try { clear_abi(frame); typename D::abi_guard guard(this->shim()); *frame = detach_from(this->shim().TryGetNextVideoFrame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_AudioFrameArrived(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AudioFrameArrived(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AudioFrameArrived(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AudioFrameArrived(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_VideoFrameArrived(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().VideoFrameArrived(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_VideoFrameArrived(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().VideoFrameArrived(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_StreamState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StreamState()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_VideoHeader(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoHeader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoBuffer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoBuffer()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AbsoluteTimestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AbsoluteTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RelativeTimestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RelativeTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Duration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsKeyFrame(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsKeyFrame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasDiscontinuity(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasDiscontinuity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FrameId(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrameId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BackgroundService(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BackgroundService()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ViewerCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewerCount()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsCapturingAudio(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCapturingAudio()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCapturingVideo(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCapturingVideo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_CapturingChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CapturingChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CapturingChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CapturingChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_ToggleGameBarKey(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleGameBarKey(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleGameBarKey(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleGameBarKey()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ToggleGameBarKeyModifiers(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleGameBarKeyModifiers(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleGameBarKeyModifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleGameBarKeyModifiers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SaveHistoricalVideoKey(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SaveHistoricalVideoKey(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SaveHistoricalVideoKey(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SaveHistoricalVideoKey()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SaveHistoricalVideoKeyModifiers(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SaveHistoricalVideoKeyModifiers(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SaveHistoricalVideoKeyModifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SaveHistoricalVideoKeyModifiers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ToggleRecordingKey(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleRecordingKey(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleRecordingKey(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleRecordingKey()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ToggleRecordingKeyModifiers(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleRecordingKeyModifiers(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleRecordingKeyModifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleRecordingKeyModifiers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TakeScreenshotKey(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TakeScreenshotKey(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TakeScreenshotKey(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TakeScreenshotKey()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TakeScreenshotKeyModifiers(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TakeScreenshotKeyModifiers(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TakeScreenshotKeyModifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TakeScreenshotKeyModifiers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ToggleRecordingIndicatorKey(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleRecordingIndicatorKey(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleRecordingIndicatorKey(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleRecordingIndicatorKey()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ToggleRecordingIndicatorKeyModifiers(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleRecordingIndicatorKeyModifiers(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleRecordingIndicatorKeyModifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleRecordingIndicatorKeyModifiers()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_ToggleMicrophoneCaptureKey(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleMicrophoneCaptureKey(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleMicrophoneCaptureKey(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleMicrophoneCaptureKey()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ToggleMicrophoneCaptureKeyModifiers(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleMicrophoneCaptureKeyModifiers(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleMicrophoneCaptureKeyModifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleMicrophoneCaptureKeyModifiers()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_ToggleCameraCaptureKey(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleCameraCaptureKey(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleCameraCaptureKey(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleCameraCaptureKey()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ToggleCameraCaptureKeyModifiers(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleCameraCaptureKeyModifiers(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleCameraCaptureKeyModifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleCameraCaptureKeyModifiers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ToggleBroadcastKey(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleBroadcastKey(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleBroadcastKey(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleBroadcastKey()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ToggleBroadcastKeyModifiers(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToggleBroadcastKeyModifiers(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ToggleBroadcastKeyModifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleBroadcastKeyModifiers()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Duration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_File(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().File()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetCurrentSettings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetCurrentSettings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ApplySettings(void* appCaptureSettings) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ApplySettings(*reinterpret_cast(&appCaptureSettings)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AddStringEvent(void* name, void* value, int32_t priority) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddStringEvent(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&priority)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt32Event(void* name, int32_t value, int32_t priority) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt32Event(*reinterpret_cast(&name), value, *reinterpret_cast(&priority)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDoubleEvent(void* name, double value, int32_t priority) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDoubleEvent(*reinterpret_cast(&name), value, *reinterpret_cast(&priority)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartStringState(void* name, void* value, int32_t priority) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartStringState(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&priority)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartInt32State(void* name, int32_t value, int32_t priority) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartInt32State(*reinterpret_cast(&name), value, *reinterpret_cast(&priority)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartDoubleState(void* name, double value, int32_t priority) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartDoubleState(*reinterpret_cast(&name), value, *reinterpret_cast(&priority)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopState(void* name) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopState(*reinterpret_cast(&name)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopAllStates() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopAllStates(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemainingStorageBytesAvailable(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemainingStorageBytesAvailable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_MetadataPurged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().MetadataPurged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_MetadataPurged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().MetadataPurged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall StopRecording() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopRecording(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Duration(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_File(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().File()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsFileTruncated(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().IsFileTruncated()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_StateChanged(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StateChanged(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_DurationGenerated(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DurationGenerated(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DurationGenerated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DurationGenerated(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_FileGenerated(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().FileGenerated(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_FileGenerated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().FileGenerated(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Record(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().Record()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RecordTimeSpan(int64_t startTime, int64_t duration, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().RecordTimeSpan(*reinterpret_cast(&startTime), *reinterpret_cast(&duration))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanCapture(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanCapture()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_State(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_AppCaptureDestinationFolder(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppCaptureDestinationFolder(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppCaptureDestinationFolder(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppCaptureDestinationFolder()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AudioEncodingBitrate(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AudioEncodingBitrate(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioEncodingBitrate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioEncodingBitrate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsAudioCaptureEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsAudioCaptureEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAudioCaptureEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAudioCaptureEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CustomVideoEncodingBitrate(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CustomVideoEncodingBitrate(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomVideoEncodingBitrate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomVideoEncodingBitrate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CustomVideoEncodingHeight(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CustomVideoEncodingHeight(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomVideoEncodingHeight(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomVideoEncodingHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CustomVideoEncodingWidth(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CustomVideoEncodingWidth(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomVideoEncodingWidth(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomVideoEncodingWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HistoricalBufferLength(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HistoricalBufferLength(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HistoricalBufferLength(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HistoricalBufferLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HistoricalBufferLengthUnit(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HistoricalBufferLengthUnit(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HistoricalBufferLengthUnit(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HistoricalBufferLengthUnit()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsHistoricalCaptureEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsHistoricalCaptureEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHistoricalCaptureEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHistoricalCaptureEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsHistoricalCaptureOnBatteryAllowed(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsHistoricalCaptureOnBatteryAllowed(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHistoricalCaptureOnBatteryAllowed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHistoricalCaptureOnBatteryAllowed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsHistoricalCaptureOnWirelessDisplayAllowed(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsHistoricalCaptureOnWirelessDisplayAllowed(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHistoricalCaptureOnWirelessDisplayAllowed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHistoricalCaptureOnWirelessDisplayAllowed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaximumRecordLength(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaximumRecordLength(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaximumRecordLength(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaximumRecordLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ScreenshotDestinationFolder(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ScreenshotDestinationFolder(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScreenshotDestinationFolder(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScreenshotDestinationFolder()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VideoEncodingBitrateMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VideoEncodingBitrateMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoEncodingBitrateMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoEncodingBitrateMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VideoEncodingResolutionMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VideoEncodingResolutionMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoEncodingResolutionMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoEncodingResolutionMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsAppCaptureEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsAppCaptureEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAppCaptureEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAppCaptureEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCpuConstrained(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCpuConstrained()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDisabledByPolicy(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDisabledByPolicy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMemoryConstrained(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMemoryConstrained()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasHardwareEncoder(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasHardwareEncoder()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsGpuConstrained(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsGpuConstrained()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AlternateShortcutKeys(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AlternateShortcutKeys()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_IsMicrophoneCaptureEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsMicrophoneCaptureEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMicrophoneCaptureEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMicrophoneCaptureEnabled()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_IsMicrophoneCaptureEnabledByDefault(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsMicrophoneCaptureEnabledByDefault(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMicrophoneCaptureEnabledByDefault(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMicrophoneCaptureEnabledByDefault()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SystemAudioGain(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SystemAudioGain(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemAudioGain(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemAudioGain()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MicrophoneGain(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MicrophoneGain(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MicrophoneGain(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MicrophoneGain()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VideoEncodingFrameRateMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VideoEncodingFrameRateMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoEncodingFrameRateMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoEncodingFrameRateMode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_IsEchoCancellationEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsEchoCancellationEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsEchoCancellationEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEchoCancellationEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsCursorImageCaptureEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsCursorImageCaptureEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCursorImageCaptureEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCursorImageCaptureEnabled()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsTargetRunning(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsTargetRunning()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHistoricalCaptureEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHistoricalCaptureEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShouldCaptureMicrophone(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldCaptureMicrophone()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShouldCaptureMicrophone(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShouldCaptureMicrophone(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RestartMicrophoneCapture() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RestartMicrophoneCapture(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MicrophoneCaptureState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MicrophoneCaptureState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MicrophoneCaptureError(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MicrophoneCaptureError()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_MicrophoneCaptureStateChanged(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().MicrophoneCaptureStateChanged(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_MicrophoneCaptureStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().MicrophoneCaptureStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_CaptureTargetClosed(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CaptureTargetClosed(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CaptureTargetClosed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CaptureTargetClosed(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetAllowedAsync(bool allowed, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SetAllowedAsync(allowed)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PhotoSettings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PhotoSettings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoSettings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoSettings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CaptureFileAsync(int32_t mode, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().CaptureFileAsync(*reinterpret_cast(&mode))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Format(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Format()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Format(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Format(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxResolution(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxResolution()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxResolution(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxResolution(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CroppedSizeInPixels(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CroppedSizeInPixels()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CroppedSizeInPixels(winrt::Windows::Foundation::Size value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CroppedSizeInPixels(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CroppedAspectRatio(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CroppedAspectRatio()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CroppedAspectRatio(winrt::Windows::Foundation::Size value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CroppedAspectRatio(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowCropping(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowCropping()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowCropping(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowCropping(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Format(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Format()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Format(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Format(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxResolution(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxResolution()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxResolution(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxResolution(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxDurationInSeconds(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxDurationInSeconds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxDurationInSeconds(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxDurationInSeconds(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowTrimming(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowTrimming()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowTrimming(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowTrimming(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Show(void* mediaCapture) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Show(*reinterpret_cast(&mediaCapture)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Width(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Width()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Height(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Height()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ControlValues(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ControlValues()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BitmapProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BitmapProperties()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Exposure(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Exposure()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExposureCompensation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExposureCompensation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsoSpeed(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().IsoSpeed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Focus(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Focus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SceneMode(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SceneMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Flashed(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Flashed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FlashPowerPercent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FlashPowerPercent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WhiteBalance(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().WhiteBalance()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ZoomFactor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ZoomFactor()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FocusState(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FocusState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsoDigitalGain(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().IsoDigitalGain()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsoAnalogGain(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().IsoAnalogGain()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SensorFrameRate(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SensorFrameRate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WhiteBalanceGain(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().WhiteBalanceGain()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SoftwareBitmap(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SoftwareBitmap()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Frame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Frame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Thumbnail(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Thumbnail()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TargetCapturePolicy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetCapturePolicy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EnableCapture() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnableCapture(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DisableCapture() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisableCapture(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SessionId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SessionId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppBroadcastServices(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppBroadcastServices()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppCaptureServices(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppCaptureServices()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_CommandReceived(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CommandReceived(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CommandReceived(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CommandReceived(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Command(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Command()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Origin(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Origin()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_GameBarServicesCreated(void* value, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().GameBarServicesCreated(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_GameBarServicesCreated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().GameBarServicesCreated(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_GameBarServices(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GameBarServices()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDefault(void** ppInstance) noexcept final try { clear_abi(ppInstance); typename D::abi_guard guard(this->shim()); *ppInstance = detach_from(this->shim().GetDefault()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TitleId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TitleId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayMode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall StartAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().StartAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().StopAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FinishAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().FinishAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall PauseAsync(int32_t behavior, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().PauseAsync(*reinterpret_cast(&behavior))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResumeAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().ResumeAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall PauseWithResultAsync(int32_t behavior, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PauseWithResultAsync(*reinterpret_cast(&behavior))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopWithResultAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().StopWithResultAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CaptureAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CaptureAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FinishAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().FinishAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall StartAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().StartAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().StopAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FinishAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().FinishAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_PhotoCaptured(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PhotoCaptured(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PhotoCaptured(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PhotoCaptured(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall InitializeAsync(void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().InitializeAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InitializeWithSettingsAsync(void* mediaCaptureInitializationSettings, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().InitializeAsync(*reinterpret_cast(&mediaCaptureInitializationSettings))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartRecordToStorageFileAsync(void* encodingProfile, void* file, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().StartRecordToStorageFileAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&file))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartRecordToStreamAsync(void* encodingProfile, void* stream, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().StartRecordToStreamAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&stream))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartRecordToCustomSinkAsync(void* encodingProfile, void* customMediaSink, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().StartRecordToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customMediaSink))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartRecordToCustomSinkIdAsync(void* encodingProfile, void* customSinkActivationId, void* customSinkSettings, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().StartRecordToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customSinkActivationId), *reinterpret_cast(&customSinkSettings))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopRecordAsync(void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().StopRecordAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CapturePhotoToStorageFileAsync(void* type, void* file, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().CapturePhotoToStorageFileAsync(*reinterpret_cast(&type), *reinterpret_cast(&file))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CapturePhotoToStreamAsync(void* type, void* stream, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().CapturePhotoToStreamAsync(*reinterpret_cast(&type), *reinterpret_cast(&stream))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddEffectAsync(int32_t mediaStreamType, void* effectActivationID, void* effectSettings, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().AddEffectAsync(*reinterpret_cast(&mediaStreamType), *reinterpret_cast(&effectActivationID), *reinterpret_cast(&effectSettings))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearEffectsAsync(int32_t mediaStreamType, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().ClearEffectsAsync(*reinterpret_cast(&mediaStreamType))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEncoderProperty(int32_t mediaStreamType, winrt::guid propertyId, void* propertyValue) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetEncoderProperty(*reinterpret_cast(&mediaStreamType), *reinterpret_cast(&propertyId), *reinterpret_cast(&propertyValue)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetEncoderProperty(int32_t mediaStreamType, winrt::guid propertyId, void** propertyValue) noexcept final try { clear_abi(propertyValue); typename D::abi_guard guard(this->shim()); *propertyValue = detach_from(this->shim().GetEncoderProperty(*reinterpret_cast(&mediaStreamType), *reinterpret_cast(&propertyId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Failed(void* errorEventHandler, winrt::event_token* eventCookie) noexcept final try { zero_abi(eventCookie); typename D::abi_guard guard(this->shim()); *eventCookie = detach_from(this->shim().Failed(*reinterpret_cast(&errorEventHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Failed(winrt::event_token eventCookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Failed(*reinterpret_cast(&eventCookie)); return 0; } int32_t __stdcall add_RecordLimitationExceeded(void* recordLimitationExceededEventHandler, winrt::event_token* eventCookie) noexcept final try { zero_abi(eventCookie); typename D::abi_guard guard(this->shim()); *eventCookie = detach_from(this->shim().RecordLimitationExceeded(*reinterpret_cast(&recordLimitationExceededEventHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RecordLimitationExceeded(winrt::event_token eventCookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RecordLimitationExceeded(*reinterpret_cast(&eventCookie)); return 0; } int32_t __stdcall get_MediaCaptureSettings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediaCaptureSettings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioDeviceController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioDeviceController()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoDeviceController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoDeviceController()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPreviewMirroring(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetPreviewMirroring(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPreviewMirroring(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetPreviewMirroring()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPreviewRotation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetPreviewRotation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPreviewRotation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetPreviewRotation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetRecordRotation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetRecordRotation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRecordRotation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetRecordRotation()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall PrepareLowLagRecordToStorageFileAsync(void* encodingProfile, void* file, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PrepareLowLagRecordToStorageFileAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&file))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PrepareLowLagRecordToStreamAsync(void* encodingProfile, void* stream, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PrepareLowLagRecordToStreamAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&stream))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PrepareLowLagRecordToCustomSinkAsync(void* encodingProfile, void* customMediaSink, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PrepareLowLagRecordToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customMediaSink))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PrepareLowLagRecordToCustomSinkIdAsync(void* encodingProfile, void* customSinkActivationId, void* customSinkSettings, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PrepareLowLagRecordToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customSinkActivationId), *reinterpret_cast(&customSinkSettings))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PrepareLowLagPhotoCaptureAsync(void* type, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PrepareLowLagPhotoCaptureAsync(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PrepareLowLagPhotoSequenceCaptureAsync(void* type, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PrepareLowLagPhotoSequenceCaptureAsync(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEncodingPropertiesAsync(int32_t mediaStreamType, void* mediaEncodingProperties, void* encoderProperties, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SetEncodingPropertiesAsync(*reinterpret_cast(&mediaStreamType), *reinterpret_cast(&mediaEncodingProperties), *reinterpret_cast(&encoderProperties))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall PrepareVariablePhotoSequenceCaptureAsync(void* type, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PrepareVariablePhotoSequenceCaptureAsync(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_FocusChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().FocusChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_FocusChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().FocusChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PhotoConfirmationCaptured(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PhotoConfirmationCaptured(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PhotoConfirmationCaptured(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PhotoConfirmationCaptured(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AddAudioEffectAsync(void* definition, void** op) noexcept final try { clear_abi(op); typename D::abi_guard guard(this->shim()); *op = detach_from>(this->shim().AddAudioEffectAsync(*reinterpret_cast(&definition))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddVideoEffectAsync(void* definition, int32_t mediaStreamType, void** op) noexcept final try { clear_abi(op); typename D::abi_guard guard(this->shim()); *op = detach_from>(this->shim().AddVideoEffectAsync(*reinterpret_cast(&definition), *reinterpret_cast(&mediaStreamType))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PauseRecordAsync(int32_t behavior, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().PauseRecordAsync(*reinterpret_cast(&behavior))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResumeRecordAsync(void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().ResumeRecordAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_CameraStreamStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CameraStreamStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CameraStreamStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CameraStreamStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_CameraStreamState(int32_t* streamState) noexcept final try { typename D::abi_guard guard(this->shim()); *streamState = detach_from(this->shim().CameraStreamState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPreviewFrameAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetPreviewFrameAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPreviewFrameCopyAsync(void* destination, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetPreviewFrameAsync(*reinterpret_cast(&destination))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ThermalStatusChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ThermalStatusChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ThermalStatusChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ThermalStatusChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_ThermalStatus(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ThermalStatus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PrepareAdvancedPhotoCaptureAsync(void* encodingProperties, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PrepareAdvancedPhotoCaptureAsync(*reinterpret_cast(&encodingProperties))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RemoveEffectAsync(void* effect, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().RemoveEffectAsync(*reinterpret_cast(&effect))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PauseRecordWithResultAsync(int32_t behavior, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PauseRecordWithResultAsync(*reinterpret_cast(&behavior))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopRecordWithResultAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().StopRecordWithResultAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FrameSources(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FrameSources()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFrameReaderAsync(void* inputSource, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().CreateFrameReaderAsync(*reinterpret_cast(&inputSource))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFrameReaderWithSubtypeAsync(void* inputSource, void* outputSubtype, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().CreateFrameReaderAsync(*reinterpret_cast(&inputSource), *reinterpret_cast(&outputSubtype))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFrameReaderWithSubtypeAndSizeAsync(void* inputSource, void* outputSubtype, struct struct_Windows_Graphics_Imaging_BitmapSize outputSize, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().CreateFrameReaderAsync(*reinterpret_cast(&inputSource), *reinterpret_cast(&outputSubtype), *reinterpret_cast(&outputSize))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_CaptureDeviceExclusiveControlStatusChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CaptureDeviceExclusiveControlStatusChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CaptureDeviceExclusiveControlStatusChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CaptureDeviceExclusiveControlStatusChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall CreateMultiSourceFrameReaderAsync(void* inputSources, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().CreateMultiSourceFrameReaderAsync(*reinterpret_cast const*>(&inputSources))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateRelativePanelWatcher(int32_t captureMode, void* displayRegion, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateRelativePanelWatcher(*reinterpret_cast(&captureMode), *reinterpret_cast(&displayRegion))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DeviceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeviceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Message(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Message()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Code(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Code()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FocusState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusState()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_AudioDeviceId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AudioDeviceId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioDeviceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioDeviceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VideoDeviceId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VideoDeviceId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoDeviceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoDeviceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StreamingCaptureMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StreamingCaptureMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StreamingCaptureMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StreamingCaptureMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PhotoCaptureSource(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PhotoCaptureSource(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PhotoCaptureSource(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PhotoCaptureSource()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_MediaCategory(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MediaCategory(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediaCategory(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediaCategory()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AudioProcessing(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AudioProcessing(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioProcessing(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioProcessing()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_AudioSource(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AudioSource(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioSource(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioSource()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VideoSource(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VideoSource(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoSource(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoSource()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_VideoProfile(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoProfile()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VideoProfile(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VideoProfile(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PreviewMediaDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreviewMediaDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PreviewMediaDescription(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PreviewMediaDescription(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RecordMediaDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecordMediaDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RecordMediaDescription(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RecordMediaDescription(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PhotoMediaDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PhotoMediaDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PhotoMediaDescription(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PhotoMediaDescription(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SourceGroup(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourceGroup()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SourceGroup(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SourceGroup(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SharingMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SharingMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SharingMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SharingMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MemoryPreference(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MemoryPreference()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MemoryPreference(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MemoryPreference(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AlwaysPlaySystemShutterSound(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AlwaysPlaySystemShutterSound()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AlwaysPlaySystemShutterSound(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AlwaysPlaySystemShutterSound(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DeviceUriPasswordCredential(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeviceUriPasswordCredential()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeviceUriPasswordCredential(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeviceUriPasswordCredential(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeviceUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeviceUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeviceUri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeviceUri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LastFrame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastFrame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RecordDuration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecordDuration()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RelativePanel(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RelativePanel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Changed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Changed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Changed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Changed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall Start() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Start(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Stop() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Stop(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AudioDeviceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioDeviceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoDeviceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoDeviceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StreamingCaptureMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StreamingCaptureMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PhotoCaptureSource(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PhotoCaptureSource()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoDeviceCharacteristic(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoDeviceCharacteristic()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ConcurrentRecordAndPhotoSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ConcurrentRecordAndPhotoSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ConcurrentRecordAndPhotoSequenceSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ConcurrentRecordAndPhotoSequenceSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CameraSoundRequiredForRegion(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CameraSoundRequiredForRegion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Horizontal35mmEquivalentFocalLength(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Horizontal35mmEquivalentFocalLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PitchOffsetDegrees(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().PitchOffsetDegrees()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Vertical35mmEquivalentFocalLength(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Vertical35mmEquivalentFocalLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediaCategory(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediaCategory()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioProcessing(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioProcessing()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Direct3D11Device(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Direct3D11Device()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsVideoProfileSupported(void* videoDeviceId, bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsVideoProfileSupported(*reinterpret_cast(&videoDeviceId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAllVideoProfiles(void* videoDeviceId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FindAllVideoProfiles(*reinterpret_cast(&videoDeviceId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindConcurrentProfiles(void* videoDeviceId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FindConcurrentProfiles(*reinterpret_cast(&videoDeviceId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindKnownVideoProfiles(void* videoDeviceId, int32_t name, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FindKnownVideoProfiles(*reinterpret_cast(&videoDeviceId), *reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LastFrame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastFrame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RecordDuration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecordDuration()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall StartPreviewAsync(void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().StartPreviewAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPreviewToCustomSinkAsync(void* encodingProfile, void* customMediaSink, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().StartPreviewToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customMediaSink))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPreviewToCustomSinkIdAsync(void* encodingProfile, void* customSinkActivationId, void* customSinkSettings, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().StartPreviewToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customSinkActivationId), *reinterpret_cast(&customSinkSettings))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopPreviewAsync(void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().StopPreviewAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoDeviceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoDeviceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedPreviewMediaDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedPreviewMediaDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedRecordMediaDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedRecordMediaDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedPhotoMediaDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedPhotoMediaDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConcurrency(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetConcurrency()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FrameSourceInfos(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FrameSourceInfos()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Properties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Properties()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Width(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Width()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Height(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Height()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FrameRate(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrameRate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsVariablePhotoSequenceSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsVariablePhotoSequenceSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHdrVideoSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHdrVideoSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Subtype(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Subtype()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Properties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Properties()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Frame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Frame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Context(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Context()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Frame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Frame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Thumbnail(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Thumbnail()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CaptureTimeOffset(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CaptureTimeOffset()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Frame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Frame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CaptureTimeOffset(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CaptureTimeOffset()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_InputProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InputProperties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OutputProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OutputProperties()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Media::Capture { inline auto AppBroadcastManager::GetGlobalSettings() { return impl::call_factory_cast([](IAppBroadcastManagerStatics const& f) { return f.GetGlobalSettings(); }); } inline auto AppBroadcastManager::ApplyGlobalSettings(winrt::Windows::Media::Capture::AppBroadcastGlobalSettings const& value) { impl::call_factory([&](IAppBroadcastManagerStatics const& f) { return f.ApplyGlobalSettings(value); }); } inline auto AppBroadcastManager::GetProviderSettings() { return impl::call_factory_cast([](IAppBroadcastManagerStatics const& f) { return f.GetProviderSettings(); }); } inline auto AppBroadcastManager::ApplyProviderSettings(winrt::Windows::Media::Capture::AppBroadcastProviderSettings const& value) { impl::call_factory([&](IAppBroadcastManagerStatics const& f) { return f.ApplyProviderSettings(value); }); } inline auto AppBroadcastPlugInManager::GetDefault() { return impl::call_factory_cast([](IAppBroadcastPlugInManagerStatics const& f) { return f.GetDefault(); }); } inline auto AppBroadcastPlugInManager::GetForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IAppBroadcastPlugInManagerStatics const& f) { return f.GetForUser(user); }); } inline auto AppCapture::GetForCurrentView() { return impl::call_factory_cast([](IAppCaptureStatics const& f) { return f.GetForCurrentView(); }); } inline auto AppCapture::SetAllowedAsync(bool allowed) { return impl::call_factory([&](IAppCaptureStatics2 const& f) { return f.SetAllowedAsync(allowed); }); } inline auto AppCaptureManager::GetCurrentSettings() { return impl::call_factory_cast([](IAppCaptureManagerStatics const& f) { return f.GetCurrentSettings(); }); } inline auto AppCaptureManager::ApplySettings(winrt::Windows::Media::Capture::AppCaptureSettings const& appCaptureSettings) { impl::call_factory([&](IAppCaptureManagerStatics const& f) { return f.ApplySettings(appCaptureSettings); }); } inline AppCaptureMetadataWriter::AppCaptureMetadataWriter() : AppCaptureMetadataWriter(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline CameraCaptureUI::CameraCaptureUI() : CameraCaptureUI(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto CameraOptionsUI::Show(winrt::Windows::Media::Capture::MediaCapture const& mediaCapture) { impl::call_factory([&](ICameraOptionsUIStatics const& f) { return f.Show(mediaCapture); }); } inline auto GameBarServicesManager::GetDefault() { return impl::call_factory_cast([](IGameBarServicesManagerStatics const& f) { return f.GetDefault(); }); } inline MediaCapture::MediaCapture() : MediaCapture(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto MediaCapture::IsVideoProfileSupported(param::hstring const& videoDeviceId) { return impl::call_factory([&](IMediaCaptureStatics const& f) { return f.IsVideoProfileSupported(videoDeviceId); }); } inline auto MediaCapture::FindAllVideoProfiles(param::hstring const& videoDeviceId) { return impl::call_factory([&](IMediaCaptureStatics const& f) { return f.FindAllVideoProfiles(videoDeviceId); }); } inline auto MediaCapture::FindConcurrentProfiles(param::hstring const& videoDeviceId) { return impl::call_factory([&](IMediaCaptureStatics const& f) { return f.FindConcurrentProfiles(videoDeviceId); }); } inline auto MediaCapture::FindKnownVideoProfiles(param::hstring const& videoDeviceId, winrt::Windows::Media::Capture::KnownVideoProfile const& name) { return impl::call_factory([&](IMediaCaptureStatics const& f) { return f.FindKnownVideoProfiles(videoDeviceId, name); }); } inline MediaCaptureInitializationSettings::MediaCaptureInitializationSettings() : MediaCaptureInitializationSettings(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } template MediaCaptureFailedEventHandler::MediaCaptureFailedEventHandler(L handler) : MediaCaptureFailedEventHandler(impl::make_delegate(std::forward(handler))) { } template MediaCaptureFailedEventHandler::MediaCaptureFailedEventHandler(F* handler) : MediaCaptureFailedEventHandler([=](auto&&... args) { return handler(args...); }) { } template MediaCaptureFailedEventHandler::MediaCaptureFailedEventHandler(O* object, M method) : MediaCaptureFailedEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) { } template MediaCaptureFailedEventHandler::MediaCaptureFailedEventHandler(com_ptr&& object, M method) : MediaCaptureFailedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template MediaCaptureFailedEventHandler::MediaCaptureFailedEventHandler(weak_ref&& object, LM&& lambda_or_method) : MediaCaptureFailedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } template MediaCaptureFailedEventHandler::MediaCaptureFailedEventHandler(std::shared_ptr&& object, M method) : MediaCaptureFailedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template MediaCaptureFailedEventHandler::MediaCaptureFailedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : MediaCaptureFailedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } inline auto MediaCaptureFailedEventHandler::operator()(winrt::Windows::Media::Capture::MediaCapture const& sender, winrt::Windows::Media::Capture::MediaCaptureFailedEventArgs const& errorEventArgs) const { check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&errorEventArgs))); } template RecordLimitationExceededEventHandler::RecordLimitationExceededEventHandler(L handler) : RecordLimitationExceededEventHandler(impl::make_delegate(std::forward(handler))) { } template RecordLimitationExceededEventHandler::RecordLimitationExceededEventHandler(F* handler) : RecordLimitationExceededEventHandler([=](auto&&... args) { return handler(args...); }) { } template RecordLimitationExceededEventHandler::RecordLimitationExceededEventHandler(O* object, M method) : RecordLimitationExceededEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) { } template RecordLimitationExceededEventHandler::RecordLimitationExceededEventHandler(com_ptr&& object, M method) : RecordLimitationExceededEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template RecordLimitationExceededEventHandler::RecordLimitationExceededEventHandler(weak_ref&& object, LM&& lambda_or_method) : RecordLimitationExceededEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } template RecordLimitationExceededEventHandler::RecordLimitationExceededEventHandler(std::shared_ptr&& object, M method) : RecordLimitationExceededEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template RecordLimitationExceededEventHandler::RecordLimitationExceededEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : RecordLimitationExceededEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } inline auto RecordLimitationExceededEventHandler::operator()(winrt::Windows::Media::Capture::MediaCapture const& sender) const { check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender))); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif