-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathCrashReporter.h
More file actions
33 lines (25 loc) · 896 Bytes
/
Copy pathCrashReporter.h
File metadata and controls
33 lines (25 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include <string>
class CrashReporter
{
public:
CrashReporter(std::wstring const & miniDumpPath);
void Report();
private:
std::wstring miniDumpPath_;
std::wstring reportPath_;
std::wstring backtracePath_;
HWND progressBarWindowHWnd_;
bool uploadSucceeded_{ false };
std::wstring resultText_;
bool quiet_{ false };
volatile bool uploadFinished_{ false };
std::string GetBacktrace();
static HRESULT CALLBACK UploadProgressCallbackProc(HWND hwnd,
UINT uNotification, WPARAM wParam, LPARAM lParam, LONG_PTR dwRefData);
bool ShowUploadProgressDialog();
static HRESULT CALLBACK UploadConfirmationCallbackProc(HWND hwnd,
UINT uNotification, WPARAM wParam, LPARAM lParam, LONG_PTR dwRefData);
bool ShowUploadConfirmationDialog();
static DWORD WINAPI MinidumpUploaderThread(LPVOID lpThreadParameter);
};