#include "WheatyExceptionReport.h"
#include "Errors.h"
#include "GitRevision.h"
#include "Memory.h"
#include <algorithm>
#include <charconv>
#include <stdexcept>
#include <utility>
#include <comdef.h>
#include <ehdata.h>
#include <rttidata.h>
#include <tchar.h>
#include <tlhelp32.h>
#include <WbemIdl.h>
Go to the source code of this file.
|
| #define | CrashFolder _T("Crashes") |
| |
| #define | PRSTRc "s" |
| |
| #define | PRSTRw "S" |
| |
| #define | EXCEPTION(x) case EXCEPTION_##x: return _T(#x); |
| |
| #define | REG_L(x) ((BYTE)(((DWORD_PTR)(x)) & 0xff)) |
| |
| #define | REG_H(x) ((BYTE)((((DWORD_PTR)(x)) >> 8) & 0xff)) |
| |
| #define | REG_X(x) ((WORD)(((DWORD_PTR)(x)) & 0xffff)) |
| |
| #define | REG_E(x) ((DWORD)(((DWORD_PTR)(x)) & 0xffffffff)) |
| |
| #define | REG_R(x) ((DWORD64)(((DWORD_PTR)(x)) & 0xffffffffffffffff)) |
| |
| #define | CPU_REG(reg, field, part) case reg: return part(context->field) |
| |
|
| LPTSTR | ErrorMessage (DWORD dw) |
| |
| template<size_t size> |
| void | ToTchar (wchar_t const *src, TCHAR(&dst)[size]) |
| |
◆ CPU_REG
| #define CPU_REG |
( |
|
reg, |
|
|
|
field, |
|
|
|
part |
|
) |
| case reg: return part(context->field) |
◆ CrashFolder
| #define CrashFolder _T("Crashes") |
◆ EXCEPTION
| #define EXCEPTION |
( |
|
x | ) |
case EXCEPTION_##x: return _T(#x); |
◆ PRSTRc
◆ PRSTRw
◆ REG_E
| #define REG_E |
( |
|
x | ) |
((DWORD)(((DWORD_PTR)(x)) & 0xffffffff)) |
◆ REG_H
| #define REG_H |
( |
|
x | ) |
((BYTE)((((DWORD_PTR)(x)) >> 8) & 0xff)) |
◆ REG_L
| #define REG_L |
( |
|
x | ) |
((BYTE)(((DWORD_PTR)(x)) & 0xff)) |
◆ REG_R
| #define REG_R |
( |
|
x | ) |
((DWORD64)(((DWORD_PTR)(x)) & 0xffffffffffffffff)) |
◆ REG_X
| #define REG_X |
( |
|
x | ) |
((WORD)(((DWORD_PTR)(x)) & 0xffff)) |
◆ com_unique_ptr
template<std::derived_from< IUnknown > T>
◆ com_unique_ptr_deleter
template<std::derived_from< IUnknown > T>
◆ ErrorMessage()
| LPTSTR ErrorMessage |
( |
DWORD |
dw | ) |
|
|
inline |
◆ ToTchar()
template<size_t size>
| void ToTchar |
( |
wchar_t const * |
src, |
|
|
TCHAR(&) |
dst[size] |
|
) |
| |