1 // Licensed under the Apache License, Version 2.0 2 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 3 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. 4 // All files in the project carrying such notice may not be copied, modified, or distributed 5 // except according to those terms. 6 //! Common dialog error return codes 7 use shared::minwindef::DWORD; 8 pub const CDERR_DIALOGFAILURE: DWORD = 0xFFFF; 9 pub const CDERR_GENERALCODES: DWORD = 0x0000; 10 pub const CDERR_STRUCTSIZE: DWORD = 0x0001; 11 pub const CDERR_INITIALIZATION: DWORD = 0x0002; 12 pub const CDERR_NOTEMPLATE: DWORD = 0x0003; 13 pub const CDERR_NOHINSTANCE: DWORD = 0x0004; 14 pub const CDERR_LOADSTRFAILURE: DWORD = 0x0005; 15 pub const CDERR_FINDRESFAILURE: DWORD = 0x0006; 16 pub const CDERR_LOADRESFAILURE: DWORD = 0x0007; 17 pub const CDERR_LOCKRESFAILURE: DWORD = 0x0008; 18 pub const CDERR_MEMALLOCFAILURE: DWORD = 0x0009; 19 pub const CDERR_MEMLOCKFAILURE: DWORD = 0x000A; 20 pub const CDERR_NOHOOK: DWORD = 0x000B; 21 pub const CDERR_REGISTERMSGFAIL: DWORD = 0x000C; 22 pub const PDERR_PRINTERCODES: DWORD = 0x1000; 23 pub const PDERR_SETUPFAILURE: DWORD = 0x1001; 24 pub const PDERR_PARSEFAILURE: DWORD = 0x1002; 25 pub const PDERR_RETDEFFAILURE: DWORD = 0x1003; 26 pub const PDERR_LOADDRVFAILURE: DWORD = 0x1004; 27 pub const PDERR_GETDEVMODEFAIL: DWORD = 0x1005; 28 pub const PDERR_INITFAILURE: DWORD = 0x1006; 29 pub const PDERR_NODEVICES: DWORD = 0x1007; 30 pub const PDERR_NODEFAULTPRN: DWORD = 0x1008; 31 pub const PDERR_DNDMMISMATCH: DWORD = 0x1009; 32 pub const PDERR_CREATEICFAILURE: DWORD = 0x100A; 33 pub const PDERR_PRINTERNOTFOUND: DWORD = 0x100B; 34 pub const PDERR_DEFAULTDIFFERENT: DWORD = 0x100C; 35 pub const CFERR_CHOOSEFONTCODES: DWORD = 0x2000; 36 pub const CFERR_NOFONTS: DWORD = 0x2001; 37 pub const CFERR_MAXLESSTHANMIN: DWORD = 0x2002; 38 pub const FNERR_FILENAMECODES: DWORD = 0x3000; 39 pub const FNERR_SUBCLASSFAILURE: DWORD = 0x3001; 40 pub const FNERR_INVALIDFILENAME: DWORD = 0x3002; 41 pub const FNERR_BUFFERTOOSMALL: DWORD = 0x3003; 42 pub const FRERR_FINDREPLACECODES: DWORD = 0x4000; 43 pub const FRERR_BUFFERLENGTHZERO: DWORD = 0x4001; 44 pub const CCERR_CHOOSECOLORCODES: DWORD = 0x5000; 45