ProcessResult.cpp
1 #include "pch.h" 2 #include "ProcessResult.h" 3 4 namespace winrt::PowerToys::FileLocksmithLib::Interop::implementation 5 { 6 ProcessResult::ProcessResult(hstring const& name, uint32_t pid, hstring const& user, array_view<hstring const> files) 7 { 8 _name = name; 9 _pid = pid; 10 _user = user; 11 _files = { files.begin(), files.end() }; 12 } 13 hstring ProcessResult::name() 14 { 15 return _name; 16 } 17 uint32_t ProcessResult::pid() 18 { 19 return _pid; 20 } 21 hstring ProcessResult::user() 22 { 23 return _user; 24 } 25 com_array<hstring> ProcessResult::files() 26 { 27 return winrt::com_array<hstring>{ _files.begin(), _files.end() }; 28 } 29 }