mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user