mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Offer to restart game from VEH exception handler (#936)
This commit is contained in:
parent
98e421a227
commit
58ceb1dc87
16 changed files with 1279 additions and 616 deletions
|
|
@ -1,19 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include "windows.h"
|
||||
#include <cinttypes>
|
||||
|
||||
#define NOMINMAX
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
|
||||
struct exception_info
|
||||
{
|
||||
void* ExceptionPointers; // Cannot dereference!
|
||||
DWORD ThreadId;
|
||||
DWORD ProcessId;
|
||||
BOOL DoFullDump;
|
||||
wchar_t DumpPath[1000];
|
||||
|
||||
// For metrics
|
||||
DWORD ExceptionCode;
|
||||
long long Lifetime;
|
||||
LPEXCEPTION_POINTERS pExceptionPointers;
|
||||
EXCEPTION_POINTERS ExceptionPointers;
|
||||
EXCEPTION_RECORD ExceptionRecord;
|
||||
CONTEXT ContextRecord;
|
||||
uint64_t nLifetime;
|
||||
HANDLE hThreadHandle;
|
||||
DWORD dwStackTraceLength;
|
||||
};
|
||||
|
||||
constexpr wchar_t SHARED_INFO_FILE_NAME[] = L"DalamudCrashInfoShare";
|
||||
constexpr wchar_t CRASHDUMP_EVENT_NAME[] = L"Global\\DalamudRequestWriteDump";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue