summaryrefslogtreecommitdiff
path: root/src/envdump.h
blob: 355df7836918b5e8544dfdff9d6a77aef446ce1f (plain)
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
#ifndef MODORGANIZER_ENVDUMP_INCLUDED
#define MODORGANIZER_ENVDUMP_INCLUDED

namespace env
{

enum class CoreDumpTypes
{
  None,
  Mini,
  Data,
  Full
};


CoreDumpTypes coreDumpTypeFromString(const std::string& s);
std::string toString(CoreDumpTypes type);

// creates a minidump file for this process
//
bool coredump(const wchar_t* dir, CoreDumpTypes type);

// finds another process with the same name as this one and creates a minidump
// file for it
//
bool coredumpOther(CoreDumpTypes type);

} // namespace

#endif  // MODORGANIZER_ENVDUMP_INCLUDED