[FileLocksmith]Query system processes if elevated (#21688)

* [FileLocksmith]Query system processes if elevated

* Show warning if user is a system user

* Make text in the file list selectable

* Update src/modules/FileLocksmith/FileLocksmithLibInterop/NtdllExtensions.cpp

Co-authored-by: Andrey Nekrasov <yuyoyuppe@users.noreply.github.com>

* Trim \0 no longer required

* Correct elevation detection logic

* Use theme approppriate colors

Co-authored-by: Andrey Nekrasov <yuyoyuppe@users.noreply.github.com>
This commit is contained in:
Jaime Bernardo
2022-11-04 16:33:26 +00:00
committed by GitHub
parent 462a107c7c
commit 66754afd76
10 changed files with 169 additions and 100 deletions

View File

@@ -29,6 +29,7 @@ public:
{
DWORD pid;
std::wstring name;
std::wstring user;
std::vector<std::wstring> modules;
};
@@ -44,6 +45,9 @@ public:
std::wstring path_to_kernel_name(LPCWSTR path);
// Gives the user name of the account running this process
std::wstring pid_to_user(DWORD pid);
std::vector<HandleInfo> handles() noexcept;
// Returns the list of all processes.