dxdiag: Display a usage message box when unknown options are requested.
[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 /* Output backend definitions. */
30 enum output_type
31 {
32     OUTPUT_NONE,
33     OUTPUT_TEXT,
34     OUTPUT_XML,
35 };
36
37 static inline const char *debugstr_output_type(enum output_type type)
38 {
39     switch (type)
40     {
41     case OUTPUT_NONE:
42         return "(none)";
43     case OUTPUT_TEXT:
44         return "Plain-text output";
45     case OUTPUT_XML:
46         return "XML output";
47     default:
48         return "(unknown)";
49     }
50 }
51
52 const WCHAR *get_output_extension(enum output_type type);
53 BOOL output_dxdiag_information(const WCHAR *filename, enum output_type type);