mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-17 13:57:05 +02:00
18 lines
649 B
C++
18 lines
649 B
C++
#pragma once
|
|
#include <Windows.h>
|
|
#include <filesystem>
|
|
#include <optional>
|
|
|
|
namespace dingosdk::backtrace {
|
|
struct NativeDump {
|
|
std::filesystem::path path;
|
|
DWORD process_id{}, process_created{}, thread_id{}, exception_code{}, timestamp{};
|
|
ULONG64 exception_address{};
|
|
};
|
|
// Match the exact process lifetime, not filenames or modification times. The game
|
|
// can emit several dumps for one fault; choose the first, preferring its rich mdmp.
|
|
std::optional<NativeDump> find_native_dump(const std::filesystem::path& directory,
|
|
DWORD process_id, DWORD process_created) noexcept;
|
|
DWORD process_creation_seconds(HANDLE process) noexcept;
|
|
}
|