winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

UninstallResult.h (1267B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include "UninstallResult.g.h"
      5 
      6 namespace winrt::Microsoft::Management::Deployment::implementation
      7 {
      8     struct UninstallResult : UninstallResultT<UninstallResult>
      9     {
     10         UninstallResult() = default;
     11 
     12 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     13         void Initialize(
     14             winrt::Microsoft::Management::Deployment::UninstallResultStatus status,
     15             winrt::hresult extendedErrorCode,
     16             uint32_t uninstallerErrorCode,
     17             hstring const& correlationData, 
     18             bool rebootRequired);
     19 #endif
     20 
     21         hstring CorrelationData();
     22         bool RebootRequired();
     23         winrt::Microsoft::Management::Deployment::UninstallResultStatus Status();
     24         winrt::hresult ExtendedErrorCode();
     25         uint32_t UninstallerErrorCode();
     26 
     27 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     28     private:
     29         std::wstring m_correlationData = L"";
     30         bool m_rebootRequired = false;
     31         winrt::Microsoft::Management::Deployment::UninstallResultStatus m_status = winrt::Microsoft::Management::Deployment::UninstallResultStatus::Ok;
     32         winrt::hresult m_extendedErrorCode = S_OK;
     33         uint32_t m_uninstallerErrorCode = 0;
     34 #endif
     35     };
     36 }