#include "exception_handler.h"
using namespace std;
using namespace google_breakpad;
namespace {
static size_t kCustomInfoCount = 2;
static CustomInfoEntry kCustomInfoEntries[] = {
CustomInfoEntry(L"prod", L"CrashTestApp"),
CustomInfoEntry(L"ver", L"1.0"),
};
bool ShowDumpResults(const wchar_t* dump_path,
const wchar_t* minidump_id,
void* context,
EXCEPTION_POINTERS* exinfo,
MDRawAssertionInfo* assertion,
bool succeeded) {
return succeeded;
}
}
bool breakpad::initialize() {
CustomClientInfo custom_info = { kCustomInfoEntries, kCustomInfoCount };
static ExceptionHandler* handler = new ExceptionHandler(L"C:\\dumps\\",
nullptr,
ShowDumpResults,
nullptr,
ExceptionHandler::HANDLER_ALL,
0,
L"\\\\.\\pipe\\BreakpadWin32",
&custom_info);
return true;
}