-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
win_crash_types.go
42 lines (38 loc) · 1.44 KB
/
win_crash_types.go
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
34
35
36
37
38
39
40
41
42
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
//go:build windows
package probe
/*
* the below represent the REG_DWORD in the registry for the dump type that's
* currently configured. Types are not explicitly documented. These are
* discovered via combination of helpful web searches and trial & error.
*
* the numbers with explicit comments are validated by trial and error.
* remainder found here under the table "Value of CrashDumpEnabled"
* https://crashdmp.wordpress.com/crash-mechanism/configuration/
*
*/
const (
DumpTypeUnknown = int(-1)
DumpTypeNone = int(0) // none
DumpTypeFull = int(1) // complete, active
DumpTypeSummary = int(2) // kernel
DumpTypeHeader = int(3) // small
DumpTypeTriage = int(4)
DumpTypeBitmapFull = int(5)
DumpTypeBitmapKernel = int(6)
DumpTypeAutomatic = int(7) // automatic
)
// WinCrashStatus defines all of the information returned from the system
// probe to the caller
type WinCrashStatus struct {
Success bool `json:"success"`
ErrString string `json:"errstring"`
FileName string `json:"filename"`
Type int `json:"dumptype"`
DateString string `json:"datestring"`
Offender string `json:"offender"`
BugCheck string `json:"buckcheckcode"`
}