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