OLD | NEW |
1 #pragma once | 1 #pragma once |
2 #include <string> | 2 #include <string> |
| 3 #include <functional> |
3 | 4 |
4 std::wstring HtmlFolderPath(); | 5 std::wstring HtmlFolderPath(); |
5 std::wstring UserSettingsFileUrl(); | 6 std::wstring UserSettingsFileUrl(); |
6 std::wstring FirstRunPageFileUrl(); | 7 std::wstring FirstRunPageFileUrl(); |
7 std::wstring FileUrl(const std::wstring& url); | 8 std::wstring FileUrl(const std::wstring& url); |
| 9 |
| 10 // Wraps EntryPoint and eats C++ exceptions. |
| 11 // Returns `false` if caught exception. |
| 12 bool EntryPoint(const std::function<void()>& functionBody); |
| 13 HRESULT EntryPointWithHResult(const std::function<HRESULT()>& functionBody); |
OLD | NEW |