winget-cli

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

RepairResult.h (1266B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include "RepairResult.g.h"
      5 
      6 namespace winrt::Microsoft::Management::Deployment::implementation
      7 {
      8     struct RepairResult : RepairResultT<RepairResult>
      9     {
     10         RepairResult() = default;
     11 
     12 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     13         void Initialize(
     14             winrt::Microsoft::Management::Deployment::RepairResultStatus status,
     15             winrt::hresult extendedErrorCode,
     16             uint32_t repairerErrorCode,
     17             hstring const& correlationData,
     18             bool rebootRequired);
     19 #endif
     20 
     21         hstring CorrelationData();
     22         bool RebootRequired();
     23         winrt::Microsoft::Management::Deployment::RepairResultStatus Status();
     24         winrt::hresult ExtendedErrorCode();
     25         uint32_t RepairerErrorCode();
     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::RepairResultStatus m_status = winrt::Microsoft::Management::Deployment::RepairResultStatus::Ok;
     32         winrt::hresult m_extendedErrorCode = S_OK;
     33         uint32_t m_repairerErrorCode = 0;
     34 #endif
     35     };
     36 }