26 lines
479 B
C
26 lines
479 B
C
|
|
#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
|