aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/logging/crashhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/logging/crashhandler.h')
-rw-r--r--NorthstarDLL/logging/crashhandler.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/NorthstarDLL/logging/crashhandler.h b/NorthstarDLL/logging/crashhandler.h
new file mode 100644
index 00000000..4d8a59ce
--- /dev/null
+++ b/NorthstarDLL/logging/crashhandler.h
@@ -0,0 +1,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;
+ EXCEPTION_RECORD exceptionRecord;
+ CONTEXT contextRecord;
+ std::vector<BacktraceModule> trace;
+ std::vector<std::string> registerDump;
+
+ std::string runtimeInfo;
+
+ int longestModuleNameLength;
+ int longestRelativeAddressLength;
+};