| 49 | } |
| 50 | |
| 51 | std::string GetUrlFromPath(const std::filesystem::path& path) |
| 52 | { |
| 53 | char url[1024]; |
| 54 | DWORD length = ARRAYSIZE(url); |
| 55 | HRESULT hr = UrlCreateFromPathA(path.u8string().data(), url, &length, 0); |
| 56 | if (FAILED(hr)) |
| 57 | { |
| 58 | throw std::exception("Failed to create url from path", hr); |
| 59 | } |
| 60 | |
| 61 | return { url }; |
| 62 | } |
| 63 | |
| 64 | std::vector<std::string> GetCommandLineArguments() |
| 65 | { |