RepairResult.cpp (1284B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 4 #include "pch.h" 5 #include "RepairResult.h" 6 #include "RepairResult.g.cpp" 7 #include <wil\cppwinrt_wrl.h> 8 9 namespace winrt::Microsoft::Management::Deployment::implementation 10 { 11 void RepairResult::Initialize( 12 winrt::Microsoft::Management::Deployment::RepairResultStatus status, 13 winrt::hresult extendedErrorCode, 14 uint32_t repairerErrorCode, 15 hstring const& correlationData, 16 bool rebootRequired) 17 { 18 m_status = status; 19 m_extendedErrorCode = extendedErrorCode; 20 m_repairerErrorCode = repairerErrorCode; 21 m_correlationData = correlationData; 22 m_rebootRequired = rebootRequired; 23 } 24 hstring RepairResult::CorrelationData() 25 { 26 return hstring(m_correlationData); 27 } 28 bool RepairResult::RebootRequired() 29 { 30 return m_rebootRequired; 31 } 32 winrt::Microsoft::Management::Deployment::RepairResultStatus RepairResult::Status() 33 { 34 return m_status; 35 } 36 winrt::hresult RepairResult::ExtendedErrorCode() 37 { 38 return m_extendedErrorCode; 39 } 40 uint32_t RepairResult::RepairerErrorCode() 41 { 42 return m_repairerErrorCode; 43 } 44 }