mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-21 05:59:42 +01:00
30 lines
701 B
C++
30 lines
701 B
C++
|
|
#include "pch.h"
|
||
|
|
#include "ProcessResult.h"
|
||
|
|
|
||
|
|
namespace winrt::PowerToys::FileLocksmithLib::Interop::implementation
|
||
|
|
{
|
||
|
|
ProcessResult::ProcessResult(hstring const& name, uint32_t pid, hstring const& user, array_view<hstring const> files)
|
||
|
|
{
|
||
|
|
_name = name;
|
||
|
|
_pid = pid;
|
||
|
|
_user = user;
|
||
|
|
_files = { files.begin(), files.end() };
|
||
|
|
}
|
||
|
|
hstring ProcessResult::name()
|
||
|
|
{
|
||
|
|
return _name;
|
||
|
|
}
|
||
|
|
uint32_t ProcessResult::pid()
|
||
|
|
{
|
||
|
|
return _pid;
|
||
|
|
}
|
||
|
|
hstring ProcessResult::user()
|
||
|
|
{
|
||
|
|
return _user;
|
||
|
|
}
|
||
|
|
com_array<hstring> ProcessResult::files()
|
||
|
|
{
|
||
|
|
return winrt::com_array<hstring>{ _files.begin(), _files.end() };
|
||
|
|
}
|
||
|
|
}
|