PackageInstallerInfo.h (1407B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "PackageInstallerInfo.g.h" 5 #include <winget/ManifestInstaller.h> 6 7 namespace winrt::Microsoft::Management::Deployment::implementation 8 { 9 struct PackageInstallerInfo : PackageInstallerInfoT<PackageInstallerInfo> 10 { 11 PackageInstallerInfo() = default; 12 13 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 14 void Initialize(const ::AppInstaller::Manifest::ManifestInstaller& manifestInstaller); 15 #endif 16 17 winrt::Microsoft::Management::Deployment::PackageInstallerType InstallerType(); 18 winrt::Microsoft::Management::Deployment::PackageInstallerType NestedInstallerType(); 19 winrt::Windows::System::ProcessorArchitecture Architecture(); 20 winrt::Microsoft::Management::Deployment::PackageInstallerScope Scope(); 21 hstring Locale(); 22 // Contract 6.0 23 winrt::Microsoft::Management::Deployment::ElevationRequirement ElevationRequirement(); 24 // Contract 12.0 25 winrt::Microsoft::Management::Deployment::AuthenticationInfo AuthenticationInfo(); 26 27 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 28 private: 29 ::AppInstaller::Manifest::ManifestInstaller m_manifestInstaller; 30 std::once_flag m_authenticationInfoOnceFlag; 31 winrt::Microsoft::Management::Deployment::AuthenticationInfo m_authenticationInfo{ nullptr }; 32 #endif 33 }; 34 }