aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/crashhandler.h
blob: 990457cc453b35936a2a6816e2dac4fd40697b60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

void InitialiseCrashHandler();
void RemoveCrashHandler();

struct BacktraceModule
{
	std::string name;
	std::string relativeAddress;
	std::string address;
};

struct ExceptionLog
{
	std::string cause;
	HMODULE crashedModule;
	PEXCEPTION_RECORD exceptionRecord;
	PCONTEXT contextRecord;
	std::vector<BacktraceModule> trace;
	std::vector<std::string> registerDump;

	std::string runtimeInfo;

	int longestModuleNameLength;
	int longestRelativeAddressLength;
};