kernel32/tests: Add tests for calling VirtualProtect with NULL as last argument.
[wine.git] / programs / dxdiag / dxdiag_private.h
blob010bb941b27239c6562843d6372a52e6e38e6515
1 /*
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
21 #include <windef.h>
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
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;
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. */
62 enum output_type
64 OUTPUT_NONE,
65 OUTPUT_TEXT,
66 OUTPUT_XML,
69 static inline const char *debugstr_output_type(enum output_type type)
71 switch (type)
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)";
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);