/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/FileLocksmith/FileLocksmithLibInterop/FileLocksmith.h
17 строк
456 B
Jaime Bernardo
[FileLocksmith]Query system processes if elevated (#21688)
04 ноя 2022, 19:33
Не верифицирован
04 ноя 2022, 19:33
66754af
Код
Авторство
О чём код?
#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);