Sync DrDump crash handler with TortoiseSVN codebase
[TortoiseGit.git] / ext / CrashServer / CrashHandler / SendRpt / Config.h
blobd9a63a013af001e7e7e99cbe68351ce50a4c7ad4
1 // Copyright 2014 Idol Software, Inc.
2 //
3 // This file is part of Doctor Dump SDK.
4 //
5 // Doctor Dump SDK is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 #include <dbghelp.h>
21 #include <atlstr.h>
22 #include <vector>
23 #include <map>
25 struct Config
27 CStringW Prefix;
28 CStringW AppName;
29 CStringW Company;
30 CStringW PrivacyPolicyUrl;
31 USHORT V[4];
32 USHORT Hotfix;
33 CStringW ApplicationGUID;
34 BOOL ServiceMode; // Service is terminated after all dumps has been collected, then send all needed information.
35 BOOL LeaveDumpFilesInTempFolder;
36 BOOL OpenProblemInBrowser;
37 BOOL UseWER;
38 DWORD SubmitterID;
39 BOOL SendAdditionalDataWithoutApproval;
40 DWORD FullDumpType;
41 CStringW LangFilePath;
42 CStringW SendRptPath;
43 CStringW DbgHelpPath;
44 CStringW ProcessName;
45 std::vector<std::pair<CStringW, CStringW> > FilesToAttach;
46 std::map<CStringW, CStringW> UserInfo;
47 CStringW CustomInfo;
49 Config()
51 V[0] = V[1] = V[2] = V[3] = 0;
52 Hotfix = 0;
53 ServiceMode = FALSE;
54 LeaveDumpFilesInTempFolder = FALSE;
55 OpenProblemInBrowser = TRUE;
56 UseWER = FALSE;
57 SubmitterID = 0;
58 SendAdditionalDataWithoutApproval = FALSE;
59 FullDumpType = 0;
63 struct Params
65 HANDLE Process;
66 DWORD ProcessId;
67 MINIDUMP_EXCEPTION_INFORMATION ExceptInfo;
68 BOOL WasAssert;
69 HANDLE ReportReady;
70 CStringA Group;