cmd: Fix comments in WCMD_color.
[wine] / programs / dxdiag / dxdiag_private.h
1 /*
2  * Private definitions for the DirectX Diagnostic Tool
3  *
4  * Copyright 2011 Andrew Nguyen
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #include <windef.h>
22
23 /* Resource definitions. */
24 #define MAX_STRING_LEN          1024
25
26 #define STRING_DXDIAG_TOOL      101
27 #define STRING_USAGE            102
28
29 /* Information collection definitions. */
30 struct system_information
31 {
32     WCHAR *szTimeEnglish;
33     WCHAR *szTimeLocalized;
34     WCHAR *szMachineNameEnglish;
35     WCHAR *szOSExLongEnglish;
36     WCHAR *szOSExLocalized;
37     WCHAR *szLanguagesEnglish;
38     WCHAR *szLanguagesLocalized;
39     WCHAR *szSystemManufacturerEnglish;
40     WCHAR *szSystemModelEnglish;
41     WCHAR *szBIOSEnglish;
42     WCHAR *szProcessorEnglish;
43     WCHAR *szPhysicalMemoryEnglish;
44     WCHAR *szPageFileEnglish;
45     WCHAR *szPageFileLocalized;
46     WCHAR *szWindowsDir;
47     WCHAR *szDirectXVersionLongEnglish;
48     WCHAR *szSetupParamEnglish;
49     WCHAR *szDxDiagVersion;
50     BOOL win64;
51 };
52
53 struct dxdiag_information
54 {
55     struct system_information system_info;
56 };
57
58 struct dxdiag_information *collect_dxdiag_information(BOOL whql_check);
59 void free_dxdiag_information(struct dxdiag_information *dxdiag_info);
60
61 /* Output backend definitions. */
62 enum output_type
63 {
64     OUTPUT_NONE,
65     OUTPUT_TEXT,
66     OUTPUT_XML,
67 };
68
69 static inline const char *debugstr_output_type(enum output_type type)
70 {
71     switch (type)
72     {
73     case OUTPUT_NONE:
74         return "(none)";
75     case OUTPUT_TEXT:
76         return "Plain-text output";
77     case OUTPUT_XML:
78         return "XML output";
79     default:
80         return "(unknown)";
81     }
82 }
83
84 const WCHAR *get_output_extension(enum output_type type);
85 BOOL output_dxdiag_information(struct dxdiag_information *dxdiag_info, const WCHAR *filename, enum output_type type);