Rise
The Vieneo Province
Loading...
Searching...
No Matches
CrashCapture.h
Go to the documentation of this file.
1#pragma once
2#include "CrashShared.h"
3
4namespace CrashReporting
5{
6 class Capture
7 {
8 HANDLE mapping_ = nullptr, request_ = nullptr, ready_ = nullptr, done_ = nullptr;
9 HANDLE stop_ = nullptr, helper_ = nullptr;
10 Shared* shared_ = nullptr;
11 volatile LONG requested_ = 0;
12 const char* startupStage_ = "not started";
13 wchar_t helperPath_[1024] = {};
14 DWORD updateError_ = ERROR_SUCCESS;
15 public:
16 Capture() = default;
17 Capture(const Capture&) = delete;
18 Capture& operator=(const Capture&) = delete;
19 ~Capture();
20 // Overrides support isolated tests without launching or logging into Rise.
21 DWORD Start(const char* trace, const wchar_t* helper = nullptr, const wchar_t* directory = nullptr) noexcept;
22 DWORD Record(const char* reason, DWORD code, EXCEPTION_POINTERS* exception) noexcept;
23 const wchar_t* Id() const noexcept { return shared_ ? shared_->id : L"unavailable"; }
24 const char* StartupStage() const noexcept { return startupStage_; }
25 const wchar_t* HelperPath() const noexcept { return helperPath_; }
26 const wchar_t* Directory() const noexcept { return shared_ ? shared_->directory : L""; }
27 DWORD UpdateError() const noexcept { return updateError_; }
28 };
29}
SCRIPT_CONTROL SCRIPT_STATE const void DWORD
const wchar_t * Id() const noexcept
const char * startupStage_
const wchar_t * HelperPath() const noexcept
Capture(const Capture &)=delete
DWORD Record(const char *reason, DWORD code, EXCEPTION_POINTERS *exception) noexcept
const char * StartupStage() const noexcept
volatile LONG requested_
const wchar_t * Directory() const noexcept
wchar_t helperPath_[1024]
DWORD Start(const char *trace, const wchar_t *helper=nullptr, const wchar_t *directory=nullptr) noexcept
DWORD UpdateError() const noexcept
Capture & operator=(const Capture &)=delete
wchar_t directory[1024]
Definition CrashShared.h:18