3 * Copyright 2012, 2013 MinGW.org project
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
26 #pragma GCC system_header
29 #define CDERR_DIALOGFAILURE 0xFFFF
30 #define CDERR_GENERALCODES 0x0000
31 #define CDERR_STRUCTSIZE 0x0001
32 #define CDERR_INITIALIZATION 0x0002
33 #define CDERR_NOTEMPLATE 0x0003
34 #define CDERR_NOHINSTANCE 0x0004
35 #define CDERR_LOADSTRFAILURE 0x0005
36 #define CDERR_FINDRESFAILURE 0x0006
37 #define CDERR_LOADRESFAILURE 0x0007
38 #define CDERR_LOCKRESFAILURE 0x0008
39 #define CDERR_MEMALLOCFAILURE 0x0009
40 #define CDERR_MEMLOCKFAILURE 0x000A
41 #define CDERR_NOHOOK 0x000B
42 #define CDERR_REGISTERMSGFAIL 0x000C
43 #define PDERR_PRINTERCODES 0x1000
44 #define PDERR_SETUPFAILURE 0x1001
45 #define PDERR_PARSEFAILURE 0x1002
46 #define PDERR_RETDEFFAILURE 0x1003
47 #define PDERR_LOADDRVFAILURE 0x1004
48 #define PDERR_GETDEVMODEFAIL 0x1005
49 #define PDERR_INITFAILURE 0x1006
50 #define PDERR_NODEVICES 0x1007
51 #define PDERR_NODEFAULTPRN 0x1008
52 #define PDERR_DNDMMISMATCH 0x1009
53 #define PDERR_CREATEICFAILURE 0x100A
54 #define PDERR_PRINTERNOTFOUND 0x100B
55 #define PDERR_DEFAULTDIFFERENT 0x100C
56 #define CFERR_CHOOSEFONTCODES 0x2000
57 #define CFERR_NOFONTS 0x2001
58 #define CFERR_MAXLESSTHANMIN 0x2002
59 #define FNERR_FILENAMECODES 0x3000
60 #define FNERR_SUBCLASSFAILURE 0x3001
61 #define FNERR_INVALIDFILENAME 0x3002
62 #define FNERR_BUFFERTOOSMALL 0x3003
63 #define FRERR_FINDREPLACECODES 0x4000
64 #define FRERR_BUFFERLENGTHZERO 0x4001
65 #define CCERR_CHOOSECOLORCODES 0x5000