NativeMethods.h
 1  #pragma once
 2  #include "NativeMethods.g.h"
 3  
 4  namespace winrt::PowerToys::FileLocksmithLib::Interop::implementation
 5  {
 6      struct NativeMethods : NativeMethodsT<NativeMethods>
 7      {
 8          NativeMethods() = default;
 9  
10          static com_array<winrt::PowerToys::FileLocksmithLib::Interop::ProcessResult> FindProcessesRecursive(array_view<hstring const> paths);
11          static hstring PidToFullPath(uint32_t pid);
12          static com_array<hstring> ReadPathsFromFile();
13          static bool StartAsElevated(array_view<hstring const> paths);
14          static bool SetDebugPrivilege();
15          static bool IsProcessElevated();
16      };
17  }
18  namespace winrt::PowerToys::FileLocksmithLib::Interop::factory_implementation
19  {
20      struct NativeMethods : NativeMethodsT<NativeMethods, implementation::NativeMethods>
21      {
22      };
23  }