Files
microsoft--powertoys/src/modules/FileLocksmith/FileLocksmithLibInterop/ProcessResult.cpp
T
wehub-resource-sync 79031da543
Spell checking / Report (Push) (push) Blocked by required conditions
Spell checking / Report (PR) (push) Blocked by required conditions
Spell checking / Check Spelling (push) Has been cancelled
Spell checking / Update PR (push) Has been cancelled
Publish Dev Docs Website / build (push) Failing after 1s
Publish Dev Docs Website / deploy (push) Has been skipped
chore: import upstream snapshot with attribution
2026-07-13 12:16:02 +08:00

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() };
}
}