Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
CrashCapture.h
Go to the documentation of this file.
1
#pragma once
2
#include "
CrashShared.h
"
3
4
namespace
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
}
DWORD
SCRIPT_CONTROL SCRIPT_STATE const void DWORD
Definition
Controls.cpp:5032
CrashShared.h
CrashReporting::Capture::ready_
HANDLE ready_
Definition
CrashCapture.h:8
CrashReporting::Capture::Id
const wchar_t * Id() const noexcept
Definition
CrashCapture.h:23
CrashReporting::Capture::shared_
Shared * shared_
Definition
CrashCapture.h:10
CrashReporting::Capture::startupStage_
const char * startupStage_
Definition
CrashCapture.h:12
CrashReporting::Capture::done_
HANDLE done_
Definition
CrashCapture.h:8
CrashReporting::Capture::mapping_
HANDLE mapping_
Definition
CrashCapture.h:8
CrashReporting::Capture::HelperPath
const wchar_t * HelperPath() const noexcept
Definition
CrashCapture.h:25
CrashReporting::Capture::Capture
Capture(const Capture &)=delete
CrashReporting::Capture::Capture
Capture()=default
CrashReporting::Capture::Record
DWORD Record(const char *reason, DWORD code, EXCEPTION_POINTERS *exception) noexcept
Definition
CrashCapture.cpp:173
CrashReporting::Capture::StartupStage
const char * StartupStage() const noexcept
Definition
CrashCapture.h:24
CrashReporting::Capture::stop_
HANDLE stop_
Definition
CrashCapture.h:9
CrashReporting::Capture::requested_
volatile LONG requested_
Definition
CrashCapture.h:11
CrashReporting::Capture::Directory
const wchar_t * Directory() const noexcept
Definition
CrashCapture.h:26
CrashReporting::Capture::helper_
HANDLE helper_
Definition
CrashCapture.h:9
CrashReporting::Capture::helperPath_
wchar_t helperPath_[1024]
Definition
CrashCapture.h:13
CrashReporting::Capture::request_
HANDLE request_
Definition
CrashCapture.h:8
CrashReporting::Capture::Start
DWORD Start(const char *trace, const wchar_t *helper=nullptr, const wchar_t *directory=nullptr) noexcept
Definition
CrashCapture.cpp:53
CrashReporting::Capture::UpdateError
DWORD UpdateError() const noexcept
Definition
CrashCapture.h:27
CrashReporting::Capture::updateError_
DWORD updateError_
Definition
CrashCapture.h:14
CrashReporting::Capture::operator=
Capture & operator=(const Capture &)=delete
CrashReporting
Definition
CrashCapture.cpp:10
CrashReporting::Shared
Definition
CrashShared.h:11
CrashReporting::Shared::id
wchar_t id[40]
Definition
CrashShared.h:20
CrashReporting::Shared::directory
wchar_t directory[1024]
Definition
CrashShared.h:18
CrashReporting
CrashCapture.h
Generated on
for Rise by
1.18.0