Files

26 lines
479 B
C
Raw Permalink Normal View History

2026-03-23 16:42:28 +08:00
#ifndef CRASHDUMP_H
#define CRASHDUMP_H
#include <comdef.h>
#include <string>
#include <tlhelp32.h>
#include <wbemidl.h>
#include <windows.h>
class CrashDump
{
public:
CrashDump(EXCEPTION_POINTERS* exp);
public:
std::string GetModuleByReAddr(PBYTE retAddr, PBYTE& moduleAddr);
std::string GetVersion();
std::string GetExceptionInfo();
std::string GetCallStack(EXCEPTION_POINTERS* exp);
private:
EXCEPTION_POINTERS* exp_{};
};
#endif // CRASHDUMP_H