summaryrefslogtreecommitdiff
path: root/src/envdump.h
blob: 91da5280054b854bc76c56dd297fc361dc770177 (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
#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 env

#endif  // MODORGANIZER_ENVDUMP_INCLUDED