mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 20:20:38 +01:00
* [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>
18 lines
456 B
C++
18 lines
456 B
C++
#pragma once
|
|
|
|
#include "pch.h"
|
|
|
|
struct ProcessResult
|
|
{
|
|
std::wstring name;
|
|
DWORD pid;
|
|
std::wstring user;
|
|
std::vector<std::wstring> files;
|
|
};
|
|
|
|
// Second version, checks handles towards files and all subfiles and folders of given dirs, if any.
|
|
std::vector<ProcessResult> find_processes_recursive(const std::vector<std::wstring>& paths);
|
|
|
|
// Gives the full path of the executable, given the process id
|
|
std::wstring pid_to_full_path(DWORD pid);
|