Index: src/plugin/PluginUtil.h |
diff --git a/src/plugin/PluginUtil.h b/src/plugin/PluginUtil.h |
index ee8cf05ca5ebd5a7a5df0713cd13939d34e087bd..19630f0459ac63f9b24de41a5028eed039a088c8 100644 |
--- a/src/plugin/PluginUtil.h |
+++ b/src/plugin/PluginUtil.h |
@@ -1,7 +1,13 @@ |
#pragma once |
#include <string> |
+#include <functional> |
std::wstring HtmlFolderPath(); |
std::wstring UserSettingsFileUrl(); |
std::wstring FirstRunPageFileUrl(); |
std::wstring FileUrl(const std::wstring& url); |
+ |
+// Wraps EntryPoint and eats C++ exceptions. |
+// Returns `false` if caught exception. |
+bool EntryPoint(const std::function<void()>& functionBody); |
+HRESULT EntryPointWithHResult(const std::function<HRESULT()>& functionBody); |