1 {******************************************************************************} 2 { } 3 { Common dialog error return codes API interface Unit for Object Pascal } 4 { } 5 { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft } 6 { Corporation. All Rights Reserved. } 7 { } 8 { The original file is: cderr.h, released June 2000. The original Pascal } 9 { code is: CdErr.pas, released December 2000. The initial developer of the } 10 { Pascal code is Marcel van Brakel (brakelm att chello dott nl). } 11 { } 12 { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 } 13 { Marcel van Brakel. All Rights Reserved. } 14 { } 15 { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) } 16 { } 17 { You may retrieve the latest version of this file at the Project JEDI } 18 { APILIB home page, located at http://jedi-apilib.sourceforge.net } 19 { } 20 { The contents of this file are used with permission, subject to the Mozilla } 21 { Public License Version 1.1 (the "License"); you may not use this file except } 22 { in compliance with the License. You may obtain a copy of the License at } 23 { http://www.mozilla.org/MPL/MPL-1.1.html } 24 { } 25 { Software distributed under the License is distributed on an "AS IS" basis, } 26 { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for } 27 { the specific language governing rights and limitations under the License. } 28 { } 29 { Alternatively, the contents of this file may be used under the terms of the } 30 { GNU Lesser General Public License (the "LGPL License"), in which case the } 31 { provisions of the LGPL License are applicable instead of those above. } 32 { If you wish to allow use of your version of this file only under the terms } 33 { of the LGPL License and not to allow others to use your version of this file } 34 { under the MPL, indicate your decision by deleting the provisions above and } 35 { replace them with the notice and other provisions required by the LGPL } 36 { License. If you do not delete the provisions above, a recipient may use } 37 { your version of this file under either the MPL or the LGPL License. } 38 { } 39 { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html } 40 { } 41 {******************************************************************************} 42 43 // $Id: JwaCdErr.pas,v 1.8 2007/09/05 11:58:49 dezipaitor Exp $ 44 {$IFNDEF JWA_OMIT_SECTIONS} 45 unit JwaCdErr; 46 47 {$WEAKPACKAGEUNIT} 48 {$ENDIF JWA_OMIT_SECTIONS} 49 50 {$HPPEMIT ''} 51 {$HPPEMIT '#include "cderr.h"'} 52 {$HPPEMIT ''} 53 54 {$IFNDEF JWA_OMIT_SECTIONS} 55 {$I jediapilib.inc} 56 57 interface 58 {$ENDIF JWA_OMIT_SECTIONS} 59 60 61 {$IFNDEF JWA_IMPLEMENTATIONSECTION} 62 const 63 CDERR_DIALOGFAILURE = $FFFF; 64 {$EXTERNALSYM CDERR_DIALOGFAILURE} 65 66 CDERR_GENERALCODES = $0000; 67 {$EXTERNALSYM CDERR_GENERALCODES} 68 CDERR_STRUCTSIZE = $0001; 69 {$EXTERNALSYM CDERR_STRUCTSIZE} 70 CDERR_INITIALIZATION = $0002; 71 {$EXTERNALSYM CDERR_INITIALIZATION} 72 CDERR_NOTEMPLATE = $0003; 73 {$EXTERNALSYM CDERR_NOTEMPLATE} 74 CDERR_NOHINSTANCE = $0004; 75 {$EXTERNALSYM CDERR_NOHINSTANCE} 76 CDERR_LOADSTRFAILURE = $0005; 77 {$EXTERNALSYM CDERR_LOADSTRFAILURE} 78 CDERR_FINDRESFAILURE = $0006; 79 {$EXTERNALSYM CDERR_FINDRESFAILURE} 80 CDERR_LOADRESFAILURE = $0007; 81 {$EXTERNALSYM CDERR_LOADRESFAILURE} 82 CDERR_LOCKRESFAILURE = $0008; 83 {$EXTERNALSYM CDERR_LOCKRESFAILURE} 84 CDERR_MEMALLOCFAILURE = $0009; 85 {$EXTERNALSYM CDERR_MEMALLOCFAILURE} 86 CDERR_MEMLOCKFAILURE = $000A; 87 {$EXTERNALSYM CDERR_MEMLOCKFAILURE} 88 CDERR_NOHOOK = $000B; 89 {$EXTERNALSYM CDERR_NOHOOK} 90 CDERR_REGISTERMSGFAIL = $000C; 91 {$EXTERNALSYM CDERR_REGISTERMSGFAIL} 92 93 PDERR_PRINTERCODES = $1000; 94 {$EXTERNALSYM PDERR_PRINTERCODES} 95 PDERR_SETUPFAILURE = $1001; 96 {$EXTERNALSYM PDERR_SETUPFAILURE} 97 PDERR_PARSEFAILURE = $1002; 98 {$EXTERNALSYM PDERR_PARSEFAILURE} 99 PDERR_RETDEFFAILURE = $1003; 100 {$EXTERNALSYM PDERR_RETDEFFAILURE} 101 PDERR_LOADDRVFAILURE = $1004; 102 {$EXTERNALSYM PDERR_LOADDRVFAILURE} 103 PDERR_GETDEVMODEFAIL = $1005; 104 {$EXTERNALSYM PDERR_GETDEVMODEFAIL} 105 PDERR_INITFAILURE = $1006; 106 {$EXTERNALSYM PDERR_INITFAILURE} 107 PDERR_NODEVICES = $1007; 108 {$EXTERNALSYM PDERR_NODEVICES} 109 PDERR_NODEFAULTPRN = $1008; 110 {$EXTERNALSYM PDERR_NODEFAULTPRN} 111 PDERR_DNDMMISMATCH = $1009; 112 {$EXTERNALSYM PDERR_DNDMMISMATCH} 113 PDERR_CREATEICFAILURE = $100A; 114 {$EXTERNALSYM PDERR_CREATEICFAILURE} 115 PDERR_PRINTERNOTFOUND = $100B; 116 {$EXTERNALSYM PDERR_PRINTERNOTFOUND} 117 PDERR_DEFAULTDIFFERENT = $100C; 118 {$EXTERNALSYM PDERR_DEFAULTDIFFERENT} 119 120 CFERR_CHOOSEFONTCODES = $2000; 121 {$EXTERNALSYM CFERR_CHOOSEFONTCODES} 122 CFERR_NOFONTS = $2001; 123 {$EXTERNALSYM CFERR_NOFONTS} 124 CFERR_MAXLESSTHANMIN = $2002; 125 {$EXTERNALSYM CFERR_MAXLESSTHANMIN} 126 127 FNERR_FILENAMECODES = $3000; 128 {$EXTERNALSYM FNERR_FILENAMECODES} 129 FNERR_SUBCLASSFAILURE = $3001; 130 {$EXTERNALSYM FNERR_SUBCLASSFAILURE} 131 FNERR_INVALIDFILENAME = $3002; 132 {$EXTERNALSYM FNERR_INVALIDFILENAME} 133 FNERR_BUFFERTOOSMALL = $3003; 134 {$EXTERNALSYM FNERR_BUFFERTOOSMALL} 135 136 FRERR_FINDREPLACECODES = $4000; 137 {$EXTERNALSYM FRERR_FINDREPLACECODES} 138 FRERR_BUFFERLENGTHZERO = $4001; 139 {$EXTERNALSYM FRERR_BUFFERLENGTHZERO} 140 141 CCERR_CHOOSECOLORCODES = $5000; 142 {$EXTERNALSYM CCERR_CHOOSECOLORCODES} 143 144 {$ENDIF JWA_IMPLEMENTATIONSECTION} 145 146 {$IFNDEF JWA_OMIT_SECTIONS} 147 implementation 148 //uses ... 149 {$ENDIF JWA_OMIT_SECTIONS} 150 151 152 153 {$IFNDEF JWA_INTERFACESECTION} 154 //your implementation here 155 {$ENDIF JWA_INTERFACESECTION} 156 157 158 159 {$IFNDEF JWA_OMIT_SECTIONS} 160 end. 161 {$ENDIF JWA_OMIT_SECTIONS} 162