1 /*
2  * Copyright 2011-2013 Arx Libertatis Team (see the AUTHORS file)
3  *
4  * This file is part of Arx Libertatis.
5  *
6  * Arx Libertatis is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Arx Libertatis is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with Arx Libertatis.  If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef ARX_TOOLS_CRASHREPORTER_WIN32UTILITIES_H
21 #define ARX_TOOLS_CRASHREPORTER_WIN32UTILITIES_H
22 
23 #include "Configure.h"
24 #include "platform/Platform.h"
25 
26 #ifdef ARX_HAVE_WINAPI
27 
28 #include <windows.h>
29 #include <string>
30 
31 ULONG64 ConvertSystemTimeToULONG64( const SYSTEMTIME& st );
32 
33 bool GetCallStackInfo(HANDLE hProcess, HANDLE hThread, PCONTEXT pContext, std::string& callstack, std::string& callstackTop, u32& callstackCrc);
34 std::string GetRegisters(PCONTEXT pCtx);
35 std::string GetExceptionString(DWORD dwCode);
36 
37 #endif // ARX_HAVE_WINAPI
38 
39 #endif // ARX_TOOLS_CRASHREPORTER_WIN32UTILITIES_H
40