/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/FileLocksmith/FileLocksmithLibInterop/NativeMethods.h
23 строки
807 B
Jaime Bernardo
[Refactor]Port C++/CX to C++/WinRT (#34198)
08 авг 2024, 17:26
Не верифицирован
08 авг 2024, 17:26
fb5ed13
Код
Авторство
О чём код?
#pragma once #include "NativeMethods.g.h" namespace winrt::PowerToys::FileLocksmithLib::Interop::implementation { struct NativeMethods : NativeMethodsT<NativeMethods> { NativeMethods() = default; static com_array<winrt::PowerToys::FileLocksmithLib::Interop::ProcessResult> FindProcessesRecursive(array_view<hstring const> paths); static hstring PidToFullPath(uint32_t pid); static com_array<hstring> ReadPathsFromFile(); static bool StartAsElevated(array_view<hstring const> paths); static bool SetDebugPrivilege(); static bool IsProcessElevated(); }; } namespace winrt::PowerToys::FileLocksmithLib::Interop::factory_implementation { struct NativeMethods : NativeMethodsT<NativeMethods, implementation::NativeMethods> { }; }