// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Security_Authentication_Web_Core_H #define WINRT_Windows_Security_Authentication_Web_Core_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.Security.Authentication.Web.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Security.Credentials.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.Security.Authentication.Web.Core.2.h" namespace winrt::impl { template auto consume_Windows_Security_Authentication_Web_Core_IFindAllAccountsResult::Accounts() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IFindAllAccountsResult)->get_Accounts(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IFindAllAccountsResult::Status() const { winrt::Windows::Security::Authentication::Web::Core::FindAllWebAccountsStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IFindAllAccountsResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_Security_Authentication_Web_Core_IFindAllAccountsResult::ProviderError() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IFindAllAccountsResult)->get_ProviderError(&value)); return winrt::Windows::Security::Authentication::Web::Core::WebProviderError{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountEventArgs::Account() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAccountEventArgs)->get_Account(&value)); return winrt::Windows::Security::Credentials::WebAccount{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor::Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAccountMonitor)->add_Updated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor::Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Updated(handler)); } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor::Updated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAccountMonitor)->remove_Updated(impl::bind_in(token)); } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor::Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAccountMonitor)->add_Removed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor::Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Removed(handler)); } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor::Removed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAccountMonitor)->remove_Removed(impl::bind_in(token)); } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor::DefaultSignInAccountChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAccountMonitor)->add_DefaultSignInAccountChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor::DefaultSignInAccountChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, DefaultSignInAccountChanged(handler)); } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor::DefaultSignInAccountChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAccountMonitor)->remove_DefaultSignInAccountChanged(impl::bind_in(token)); } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor2::AccountPictureUpdated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAccountMonitor2)->add_AccountPictureUpdated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor2::AccountPictureUpdated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AccountPictureUpdated(handler)); } template auto consume_Windows_Security_Authentication_Web_Core_IWebAccountMonitor2::AccountPictureUpdated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAccountMonitor2)->remove_AccountPictureUpdated(impl::bind_in(token)); } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationAddAccountResponse::WebAccount() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationAddAccountResponse)->get_WebAccount(&value)); return winrt::Windows::Security::Credentials::WebAccount{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationAddAccountResponse::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationAddAccountResponse)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationAddAccountResponseFactory::CreateWithAccount(winrt::Windows::Security::Credentials::WebAccount const& webAccount) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationAddAccountResponseFactory)->CreateWithAccount(*(void**)(&webAccount), &value)); return winrt::Windows::Security::Authentication::Web::Core::WebAuthenticationAddAccountResponse{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationAddAccountResult::ResponseData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationAddAccountResult)->get_ResponseData(&value)); return winrt::Windows::Security::Authentication::Web::Core::WebAuthenticationAddAccountResponse{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationAddAccountResult::ResponseStatus() const { winrt::Windows::Security::Authentication::Web::Core::WebAuthenticationAddAccountStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationAddAccountResult)->get_ResponseStatus(reinterpret_cast(&value))); return value; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationAddAccountResult::ResponseError() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationAddAccountResult)->get_ResponseError(&value)); return winrt::Windows::Security::Authentication::Web::Core::WebProviderError{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics::GetTokenSilentlyAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics)->GetTokenSilentlyAsync(*(void**)(&request), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics::GetTokenSilentlyAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request, winrt::Windows::Security::Credentials::WebAccount const& webAccount) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics)->GetTokenSilentlyWithWebAccountAsync(*(void**)(&request), *(void**)(&webAccount), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics::RequestTokenAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics)->RequestTokenAsync(*(void**)(&request), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics::RequestTokenAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request, winrt::Windows::Security::Credentials::WebAccount const& webAccount) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics)->RequestTokenWithWebAccountAsync(*(void**)(&request), *(void**)(&webAccount), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics::FindAccountAsync(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& webAccountId) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics)->FindAccountAsync(*(void**)(&provider), *(void**)(&webAccountId), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics::FindAccountProviderAsync(param::hstring const& webAccountProviderId) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics)->FindAccountProviderAsync(*(void**)(&webAccountProviderId), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics::FindAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics)->FindAccountProviderWithAuthorityAsync(*(void**)(&webAccountProviderId), *(void**)(&authority), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics2::FindAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority, winrt::Windows::System::User const& user) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics2)->FindAccountProviderWithAuthorityForUserAsync(*(void**)(&webAccountProviderId), *(void**)(&authority), *(void**)(&user), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics3::CreateWebAccountMonitor(param::iterable const& webAccounts) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics3)->CreateWebAccountMonitor(*(void**)(&webAccounts), &result)); return winrt::Windows::Security::Authentication::Web::Core::WebAccountMonitor{ result, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics4::FindAllAccountsAsync(winrt::Windows::Security::Credentials::WebAccountProvider const& provider) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics4)->FindAllAccountsAsync(*(void**)(&provider), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics4::FindAllAccountsAsync(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& clientId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics4)->FindAllAccountsWithClientIdAsync(*(void**)(&provider), *(void**)(&clientId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics4::FindSystemAccountProviderAsync(param::hstring const& webAccountProviderId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics4)->FindSystemAccountProviderAsync(*(void**)(&webAccountProviderId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics4::FindSystemAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics4)->FindSystemAccountProviderWithAuthorityAsync(*(void**)(&webAccountProviderId), *(void**)(&authority), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics4::FindSystemAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority, winrt::Windows::System::User const& user) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics4)->FindSystemAccountProviderWithAuthorityForUserAsync(*(void**)(&webAccountProviderId), *(void**)(&authority), *(void**)(&user), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationCoreManagerStatics5::AddAccountWithTransferTokenAsync(winrt::Windows::Security::Authentication::Web::Core::WebAuthenticationTransferTokenRequest const& request) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationCoreManagerStatics5)->AddAccountWithTransferTokenAsync(*(void**)(&request), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationTransferTokenRequest::WebAccountProvider() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationTransferTokenRequest)->get_WebAccountProvider(&value)); return winrt::Windows::Security::Credentials::WebAccountProvider{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationTransferTokenRequest::TransferToken() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationTransferTokenRequest)->get_TransferToken(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationTransferTokenRequest::TransferToken(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationTransferTokenRequest)->put_TransferToken(*(void**)(&value))); } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationTransferTokenRequest::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationTransferTokenRequest)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationTransferTokenRequest::CorrelationId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationTransferTokenRequest)->get_CorrelationId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationTransferTokenRequest::CorrelationId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationTransferTokenRequest)->put_CorrelationId(*(void**)(&value))); } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationTransferTokenRequestFactory::Create(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& transferToken) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationTransferTokenRequestFactory)->Create(*(void**)(&provider), *(void**)(&transferToken), &value)); return winrt::Windows::Security::Authentication::Web::Core::WebAuthenticationTransferTokenRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebAuthenticationTransferTokenRequestFactory::CreateWithCorrelationId(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& transferToken, param::hstring const& correlationId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationTransferTokenRequestFactory)->CreateWithCorrelationId(*(void**)(&provider), *(void**)(&transferToken), *(void**)(&correlationId), &value)); return winrt::Windows::Security::Authentication::Web::Core::WebAuthenticationTransferTokenRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebProviderError::ErrorCode() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebProviderError)->get_ErrorCode(&value)); return value; } template auto consume_Windows_Security_Authentication_Web_Core_IWebProviderError::ErrorMessage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebProviderError)->get_ErrorMessage(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebProviderError::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebProviderError)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebProviderErrorFactory::Create(uint32_t errorCode, param::hstring const& errorMessage) const { void* webProviderError{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebProviderErrorFactory)->Create(errorCode, *(void**)(&errorMessage), &webProviderError)); return winrt::Windows::Security::Authentication::Web::Core::WebProviderError{ webProviderError, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequest::WebAccountProvider() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequest)->get_WebAccountProvider(&value)); return winrt::Windows::Security::Credentials::WebAccountProvider{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequest::Scope() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequest)->get_Scope(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequest::ClientId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequest)->get_ClientId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequest::PromptType() const { winrt::Windows::Security::Authentication::Web::Core::WebTokenRequestPromptType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequest)->get_PromptType(reinterpret_cast(&value))); return value; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequest::Properties() const { void* requestProperties{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequest)->get_Properties(&requestProperties)); return winrt::Windows::Foundation::Collections::IMap{ requestProperties, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequest2::AppProperties() const { void* requestProperties{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequest2)->get_AppProperties(&requestProperties)); return winrt::Windows::Foundation::Collections::IMap{ requestProperties, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequest3::CorrelationId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequest3)->get_CorrelationId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequest3::CorrelationId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequest3)->put_CorrelationId(*(void**)(&value))); } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequestFactory::Create(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& scope, param::hstring const& clientId) const { void* webTokenRequest{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequestFactory)->Create(*(void**)(&provider), *(void**)(&scope), *(void**)(&clientId), &webTokenRequest)); return winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest{ webTokenRequest, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequestFactory::CreateWithPromptType(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& scope, param::hstring const& clientId, winrt::Windows::Security::Authentication::Web::Core::WebTokenRequestPromptType const& promptType) const { void* webTokenRequest{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequestFactory)->CreateWithPromptType(*(void**)(&provider), *(void**)(&scope), *(void**)(&clientId), static_cast(promptType), &webTokenRequest)); return winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest{ webTokenRequest, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequestFactory::CreateWithProvider(winrt::Windows::Security::Credentials::WebAccountProvider const& provider) const { void* webTokenRequest{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequestFactory)->CreateWithProvider(*(void**)(&provider), &webTokenRequest)); return winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest{ webTokenRequest, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequestFactory::CreateWithScope(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& scope) const { void* webTokenRequest{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequestFactory)->CreateWithScope(*(void**)(&provider), *(void**)(&scope), &webTokenRequest)); return winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest{ webTokenRequest, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequestResult::ResponseData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequestResult)->get_ResponseData(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequestResult::ResponseStatus() const { winrt::Windows::Security::Authentication::Web::Core::WebTokenRequestStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequestResult)->get_ResponseStatus(reinterpret_cast(&value))); return value; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequestResult::ResponseError() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequestResult)->get_ResponseError(&value)); return winrt::Windows::Security::Authentication::Web::Core::WebProviderError{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenRequestResult::InvalidateCacheAsync() const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequestResult)->InvalidateCacheAsync(&asyncInfo)); return winrt::Windows::Foundation::IAsyncAction{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenResponse::Token() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenResponse)->get_Token(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenResponse::ProviderError() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenResponse)->get_ProviderError(&value)); return winrt::Windows::Security::Authentication::Web::Core::WebProviderError{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenResponse::WebAccount() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenResponse)->get_WebAccount(&value)); return winrt::Windows::Security::Credentials::WebAccount{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenResponse::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenResponse)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenResponseFactory::CreateWithToken(param::hstring const& token) const { void* webTokenResponse{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenResponseFactory)->CreateWithToken(*(void**)(&token), &webTokenResponse)); return winrt::Windows::Security::Authentication::Web::Core::WebTokenResponse{ webTokenResponse, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenResponseFactory::CreateWithTokenAndAccount(param::hstring const& token, winrt::Windows::Security::Credentials::WebAccount const& webAccount) const { void* webTokenResponse{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenResponseFactory)->CreateWithTokenAndAccount(*(void**)(&token), *(void**)(&webAccount), &webTokenResponse)); return winrt::Windows::Security::Authentication::Web::Core::WebTokenResponse{ webTokenResponse, take_ownership_from_abi }; } template auto consume_Windows_Security_Authentication_Web_Core_IWebTokenResponseFactory::CreateWithTokenAccountAndError(param::hstring const& token, winrt::Windows::Security::Credentials::WebAccount const& webAccount, winrt::Windows::Security::Authentication::Web::Core::WebProviderError const& error) const { void* webTokenResponse{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Security::Authentication::Web::Core::IWebTokenResponseFactory)->CreateWithTokenAccountAndError(*(void**)(&token), *(void**)(&webAccount), *(void**)(&error), &webTokenResponse)); return winrt::Windows::Security::Authentication::Web::Core::WebTokenResponse{ webTokenResponse, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Accounts(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Accounts()); 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(); } int32_t __stdcall get_ProviderError(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProviderError()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Account(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Account()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_Updated(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Updated(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Updated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Updated(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Removed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Removed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Removed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Removed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_DefaultSignInAccountChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DefaultSignInAccountChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DefaultSignInAccountChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DefaultSignInAccountChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_AccountPictureUpdated(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AccountPictureUpdated(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AccountPictureUpdated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AccountPictureUpdated(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_WebAccount(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WebAccount()); 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 CreateWithAccount(void* webAccount, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateWithAccount(*reinterpret_cast(&webAccount))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ResponseData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ResponseData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ResponseStatus(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ResponseStatus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ResponseError(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ResponseError()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetTokenSilentlyAsync(void* request, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().GetTokenSilentlyAsync(*reinterpret_cast(&request))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTokenSilentlyWithWebAccountAsync(void* request, void* webAccount, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().GetTokenSilentlyAsync(*reinterpret_cast(&request), *reinterpret_cast(&webAccount))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestTokenAsync(void* request, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().RequestTokenAsync(*reinterpret_cast(&request))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestTokenWithWebAccountAsync(void* request, void* webAccount, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().RequestTokenAsync(*reinterpret_cast(&request), *reinterpret_cast(&webAccount))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAccountAsync(void* provider, void* webAccountId, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().FindAccountAsync(*reinterpret_cast(&provider), *reinterpret_cast(&webAccountId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAccountProviderAsync(void* webAccountProviderId, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().FindAccountProviderAsync(*reinterpret_cast(&webAccountProviderId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAccountProviderWithAuthorityAsync(void* webAccountProviderId, void* authority, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().FindAccountProviderAsync(*reinterpret_cast(&webAccountProviderId), *reinterpret_cast(&authority))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FindAccountProviderWithAuthorityForUserAsync(void* webAccountProviderId, void* authority, void* user, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().FindAccountProviderAsync(*reinterpret_cast(&webAccountProviderId), *reinterpret_cast(&authority), *reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateWebAccountMonitor(void* webAccounts, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWebAccountMonitor(*reinterpret_cast const*>(&webAccounts))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FindAllAccountsAsync(void* provider, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().FindAllAccountsAsync(*reinterpret_cast(&provider))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAllAccountsWithClientIdAsync(void* provider, void* clientId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().FindAllAccountsAsync(*reinterpret_cast(&provider), *reinterpret_cast(&clientId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindSystemAccountProviderAsync(void* webAccountProviderId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().FindSystemAccountProviderAsync(*reinterpret_cast(&webAccountProviderId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindSystemAccountProviderWithAuthorityAsync(void* webAccountProviderId, void* authority, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().FindSystemAccountProviderAsync(*reinterpret_cast(&webAccountProviderId), *reinterpret_cast(&authority))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindSystemAccountProviderWithAuthorityForUserAsync(void* webAccountProviderId, void* authority, void* user, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().FindSystemAccountProviderAsync(*reinterpret_cast(&webAccountProviderId), *reinterpret_cast(&authority), *reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AddAccountWithTransferTokenAsync(void* request, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().AddAccountWithTransferTokenAsync(*reinterpret_cast(&request))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_WebAccountProvider(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WebAccountProvider()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TransferToken(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TransferToken()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TransferToken(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TransferToken(*reinterpret_cast(&value)); 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(); } int32_t __stdcall get_CorrelationId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CorrelationId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CorrelationId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CorrelationId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* provider, void* transferToken, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&provider), *reinterpret_cast(&transferToken))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithCorrelationId(void* provider, void* transferToken, void* correlationId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateWithCorrelationId(*reinterpret_cast(&provider), *reinterpret_cast(&transferToken), *reinterpret_cast(&correlationId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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(); } int32_t __stdcall get_ErrorMessage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorMessage()); 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 Create(uint32_t errorCode, void* errorMessage, void** webProviderError) noexcept final try { clear_abi(webProviderError); typename D::abi_guard guard(this->shim()); *webProviderError = detach_from(this->shim().Create(errorCode, *reinterpret_cast(&errorMessage))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_WebAccountProvider(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WebAccountProvider()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Scope(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Scope()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ClientId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ClientId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PromptType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PromptType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Properties(void** requestProperties) noexcept final try { clear_abi(requestProperties); typename D::abi_guard guard(this->shim()); *requestProperties = 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_AppProperties(void** requestProperties) noexcept final try { clear_abi(requestProperties); typename D::abi_guard guard(this->shim()); *requestProperties = detach_from>(this->shim().AppProperties()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CorrelationId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CorrelationId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CorrelationId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CorrelationId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* provider, void* scope, void* clientId, void** webTokenRequest) noexcept final try { clear_abi(webTokenRequest); typename D::abi_guard guard(this->shim()); *webTokenRequest = detach_from(this->shim().Create(*reinterpret_cast(&provider), *reinterpret_cast(&scope), *reinterpret_cast(&clientId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithPromptType(void* provider, void* scope, void* clientId, int32_t promptType, void** webTokenRequest) noexcept final try { clear_abi(webTokenRequest); typename D::abi_guard guard(this->shim()); *webTokenRequest = detach_from(this->shim().CreateWithPromptType(*reinterpret_cast(&provider), *reinterpret_cast(&scope), *reinterpret_cast(&clientId), *reinterpret_cast(&promptType))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithProvider(void* provider, void** webTokenRequest) noexcept final try { clear_abi(webTokenRequest); typename D::abi_guard guard(this->shim()); *webTokenRequest = detach_from(this->shim().CreateWithProvider(*reinterpret_cast(&provider))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithScope(void* provider, void* scope, void** webTokenRequest) noexcept final try { clear_abi(webTokenRequest); typename D::abi_guard guard(this->shim()); *webTokenRequest = detach_from(this->shim().CreateWithScope(*reinterpret_cast(&provider), *reinterpret_cast(&scope))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ResponseData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ResponseData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ResponseStatus(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ResponseStatus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ResponseError(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ResponseError()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InvalidateCacheAsync(void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from(this->shim().InvalidateCacheAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Token(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Token()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProviderError(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProviderError()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WebAccount(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WebAccount()); 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 CreateWithToken(void* token, void** webTokenResponse) noexcept final try { clear_abi(webTokenResponse); typename D::abi_guard guard(this->shim()); *webTokenResponse = detach_from(this->shim().CreateWithToken(*reinterpret_cast(&token))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithTokenAndAccount(void* token, void* webAccount, void** webTokenResponse) noexcept final try { clear_abi(webTokenResponse); typename D::abi_guard guard(this->shim()); *webTokenResponse = detach_from(this->shim().CreateWithTokenAndAccount(*reinterpret_cast(&token), *reinterpret_cast(&webAccount))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithTokenAccountAndError(void* token, void* webAccount, void* error, void** webTokenResponse) noexcept final try { clear_abi(webTokenResponse); typename D::abi_guard guard(this->shim()); *webTokenResponse = detach_from(this->shim().CreateWithTokenAccountAndError(*reinterpret_cast(&token), *reinterpret_cast(&webAccount), *reinterpret_cast(&error))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Security::Authentication::Web::Core { inline WebAuthenticationAddAccountResponse::WebAuthenticationAddAccountResponse(winrt::Windows::Security::Credentials::WebAccount const& webAccount) : WebAuthenticationAddAccountResponse(impl::call_factory([&](IWebAuthenticationAddAccountResponseFactory const& f) { return f.CreateWithAccount(webAccount); })) { } inline auto WebAuthenticationCoreManager::GetTokenSilentlyAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics const& f) { return f.GetTokenSilentlyAsync(request); }); } inline auto WebAuthenticationCoreManager::GetTokenSilentlyAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request, winrt::Windows::Security::Credentials::WebAccount const& webAccount) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics const& f) { return f.GetTokenSilentlyAsync(request, webAccount); }); } inline auto WebAuthenticationCoreManager::RequestTokenAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics const& f) { return f.RequestTokenAsync(request); }); } inline auto WebAuthenticationCoreManager::RequestTokenAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request, winrt::Windows::Security::Credentials::WebAccount const& webAccount) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics const& f) { return f.RequestTokenAsync(request, webAccount); }); } inline auto WebAuthenticationCoreManager::FindAccountAsync(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& webAccountId) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics const& f) { return f.FindAccountAsync(provider, webAccountId); }); } inline auto WebAuthenticationCoreManager::FindAccountProviderAsync(param::hstring const& webAccountProviderId) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics const& f) { return f.FindAccountProviderAsync(webAccountProviderId); }); } inline auto WebAuthenticationCoreManager::FindAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics const& f) { return f.FindAccountProviderAsync(webAccountProviderId, authority); }); } inline auto WebAuthenticationCoreManager::FindAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority, winrt::Windows::System::User const& user) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics2 const& f) { return f.FindAccountProviderAsync(webAccountProviderId, authority, user); }); } inline auto WebAuthenticationCoreManager::CreateWebAccountMonitor(param::iterable const& webAccounts) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics3 const& f) { return f.CreateWebAccountMonitor(webAccounts); }); } inline auto WebAuthenticationCoreManager::FindAllAccountsAsync(winrt::Windows::Security::Credentials::WebAccountProvider const& provider) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics4 const& f) { return f.FindAllAccountsAsync(provider); }); } inline auto WebAuthenticationCoreManager::FindAllAccountsAsync(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& clientId) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics4 const& f) { return f.FindAllAccountsAsync(provider, clientId); }); } inline auto WebAuthenticationCoreManager::FindSystemAccountProviderAsync(param::hstring const& webAccountProviderId) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics4 const& f) { return f.FindSystemAccountProviderAsync(webAccountProviderId); }); } inline auto WebAuthenticationCoreManager::FindSystemAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics4 const& f) { return f.FindSystemAccountProviderAsync(webAccountProviderId, authority); }); } inline auto WebAuthenticationCoreManager::FindSystemAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority, winrt::Windows::System::User const& user) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics4 const& f) { return f.FindSystemAccountProviderAsync(webAccountProviderId, authority, user); }); } inline auto WebAuthenticationCoreManager::AddAccountWithTransferTokenAsync(winrt::Windows::Security::Authentication::Web::Core::WebAuthenticationTransferTokenRequest const& request) { return impl::call_factory([&](IWebAuthenticationCoreManagerStatics5 const& f) { return f.AddAccountWithTransferTokenAsync(request); }); } inline WebAuthenticationTransferTokenRequest::WebAuthenticationTransferTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& transferToken) : WebAuthenticationTransferTokenRequest(impl::call_factory([&](IWebAuthenticationTransferTokenRequestFactory const& f) { return f.Create(provider, transferToken); })) { } inline WebAuthenticationTransferTokenRequest::WebAuthenticationTransferTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& transferToken, param::hstring const& correlationId) : WebAuthenticationTransferTokenRequest(impl::call_factory([&](IWebAuthenticationTransferTokenRequestFactory const& f) { return f.CreateWithCorrelationId(provider, transferToken, correlationId); })) { } inline WebProviderError::WebProviderError(uint32_t errorCode, param::hstring const& errorMessage) : WebProviderError(impl::call_factory([&](IWebProviderErrorFactory const& f) { return f.Create(errorCode, errorMessage); })) { } inline WebTokenRequest::WebTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& scope, param::hstring const& clientId) : WebTokenRequest(impl::call_factory([&](IWebTokenRequestFactory const& f) { return f.Create(provider, scope, clientId); })) { } inline WebTokenRequest::WebTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& scope, param::hstring const& clientId, winrt::Windows::Security::Authentication::Web::Core::WebTokenRequestPromptType const& promptType) : WebTokenRequest(impl::call_factory([&](IWebTokenRequestFactory const& f) { return f.CreateWithPromptType(provider, scope, clientId, promptType); })) { } inline WebTokenRequest::WebTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider) : WebTokenRequest(impl::call_factory([&](IWebTokenRequestFactory const& f) { return f.CreateWithProvider(provider); })) { } inline WebTokenRequest::WebTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& scope) : WebTokenRequest(impl::call_factory([&](IWebTokenRequestFactory const& f) { return f.CreateWithScope(provider, scope); })) { } inline WebTokenResponse::WebTokenResponse() : WebTokenResponse(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline WebTokenResponse::WebTokenResponse(param::hstring const& token) : WebTokenResponse(impl::call_factory([&](IWebTokenResponseFactory const& f) { return f.CreateWithToken(token); })) { } inline WebTokenResponse::WebTokenResponse(param::hstring const& token, winrt::Windows::Security::Credentials::WebAccount const& webAccount) : WebTokenResponse(impl::call_factory([&](IWebTokenResponseFactory const& f) { return f.CreateWithTokenAndAccount(token, webAccount); })) { } inline WebTokenResponse::WebTokenResponse(param::hstring const& token, winrt::Windows::Security::Credentials::WebAccount const& webAccount, winrt::Windows::Security::Authentication::Web::Core::WebProviderError const& error) : WebTokenResponse(impl::call_factory([&](IWebTokenResponseFactory const& f) { return f.CreateWithTokenAccountAndError(token, webAccount, error); })) { } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif