1 /*
2  *  Copyright (C) 2005-2018 Team Kodi
3  *  This file is part of Kodi - https://kodi.tv
4  *
5  *  SPDX-License-Identifier: GPL-2.0-or-later
6  *  See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <windows.h>
12 
13 class win32_exception
14 {
15 public:
16     typedef const void* Address; // OK on Win32 platform
17 
set_version(std::string version)18     static void set_version(std::string version) { mVersion = version; };
19     static bool write_minidump(EXCEPTION_POINTERS* pEp);
20     static bool write_stacktrace(EXCEPTION_POINTERS* pEp);
21     static bool ShouldHook();
22 private:
23     static std::string mVersion;
24 };
25