Files
hrynco-kswitcher/src/files_powershell.h
T

16 lines
345 B
C++

#pragma once
#include <windows.h>
#include <string>
namespace ks::files
{
inline std::wstring windowsPowerShell()
{
wchar_t system[MAX_PATH]{};
const auto length=GetSystemDirectoryW(system,MAX_PATH);
return length && length<MAX_PATH
? std::wstring(system)+L"\\WindowsPowerShell\\v1.0\\powershell.exe" : std::wstring{};
}
}