15 #include <boost/system/error_code.hpp>
22 inline std::filesystem::path
25 TCHAR sysdir[MAX_PATH];
26 UINT size = ::GetSystemDirectory(sysdir,
sizeof(sysdir));
29 BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR(
"GetSystemDirectory() failed");
31 std::filesystem::path p = sysdir;
35 inline std::filesystem::path
38 TCHAR sysdir[MAX_PATH];
39 UINT size = ::GetSystemDirectory(sysdir,
sizeof(sysdir));
40 std::filesystem::path p;
43 BOOST_PROCESS_RETURN_LAST_SYSTEM_ERROR(ec);