13 #include <boost/system/error_code.hpp>
22 TCHAR sysdir[MAX_PATH];
23 UINT size = ::GetSystemDirectory(sysdir,
sizeof(sysdir));
26 BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR(
"GetSystemDirectory() failed");
28 std::filesystem::path p = sysdir;
32 inline std::filesystem::path
shell_path(boost::system::error_code& ec)
34 TCHAR sysdir[MAX_PATH];
35 UINT size = ::GetSystemDirectory(sysdir,
sizeof(sysdir));
36 std::filesystem::path p;
39 BOOST_PROCESS_RETURN_LAST_SYSTEM_ERROR(ec);