2 * Private definitions for the DirectX Diagnostic Tool
4 * Copyright 2011 Andrew Nguyen
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.
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.
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
23 /* Resource definitions. */
24 #define MAX_STRING_LEN 1024
26 #define STRING_DXDIAG_TOOL 101
27 #define STRING_USAGE 102
29 /* Information collection definitions. */
30 struct system_information
33 WCHAR
*szTimeLocalized
;
34 WCHAR
*szMachineNameEnglish
;
35 WCHAR
*szOSExLongEnglish
;
36 WCHAR
*szOSExLocalized
;
37 WCHAR
*szLanguagesEnglish
;
38 WCHAR
*szLanguagesLocalized
;
39 WCHAR
*szSystemManufacturerEnglish
;
40 WCHAR
*szSystemModelEnglish
;
42 WCHAR
*szProcessorEnglish
;
43 WCHAR
*szPhysicalMemoryEnglish
;
44 WCHAR
*szPageFileEnglish
;
45 WCHAR
*szPageFileLocalized
;
47 WCHAR
*szDirectXVersionLongEnglish
;
48 WCHAR
*szSetupParamEnglish
;
49 WCHAR
*szDxDiagVersion
;
53 struct dxdiag_information
55 struct system_information system_info
;
58 struct dxdiag_information
*collect_dxdiag_information(BOOL whql_check
);
59 void free_dxdiag_information(struct dxdiag_information
*dxdiag_info
);
61 /* Output backend definitions. */
69 static inline const char *debugstr_output_type(enum output_type type
)
76 return "Plain-text output";
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
);