home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / MSINC.PAK / CDERR.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  2KB  |  59 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * cderr.h -     Common dialog error return codes                              *
  4. *                                                                             *
  5. * Version 1.0                                      *
  6. *                                                                             *
  7. * Copyright (c) 1992-1995, Microsoft Corp.    All rights reserved.          *
  8. *                                                                             *
  9. \*****************************************************************************/
  10.  
  11. #ifndef _INC_CDERR
  12. #define _INC_CDERR
  13.  
  14. #define CDERR_DIALOGFAILURE   0xFFFF
  15.  
  16. #define CDERR_GENERALCODES     0x0000
  17. #define CDERR_STRUCTSIZE       0x0001
  18. #define CDERR_INITIALIZATION   0x0002
  19. #define CDERR_NOTEMPLATE       0x0003
  20. #define CDERR_NOHINSTANCE      0x0004
  21. #define CDERR_LOADSTRFAILURE   0x0005
  22. #define CDERR_FINDRESFAILURE   0x0006
  23. #define CDERR_LOADRESFAILURE   0x0007
  24. #define CDERR_LOCKRESFAILURE   0x0008
  25. #define CDERR_MEMALLOCFAILURE  0x0009
  26. #define CDERR_MEMLOCKFAILURE   0x000A
  27. #define CDERR_NOHOOK           0x000B
  28. #define CDERR_REGISTERMSGFAIL  0x000C
  29.  
  30. #define PDERR_PRINTERCODES     0x1000
  31. #define PDERR_SETUPFAILURE     0x1001
  32. #define PDERR_PARSEFAILURE     0x1002
  33. #define PDERR_RETDEFFAILURE    0x1003
  34. #define PDERR_LOADDRVFAILURE   0x1004
  35. #define PDERR_GETDEVMODEFAIL   0x1005
  36. #define PDERR_INITFAILURE      0x1006
  37. #define PDERR_NODEVICES        0x1007
  38. #define PDERR_NODEFAULTPRN     0x1008
  39. #define PDERR_DNDMMISMATCH     0x1009
  40. #define PDERR_CREATEICFAILURE  0x100A
  41. #define PDERR_PRINTERNOTFOUND  0x100B
  42. #define PDERR_DEFAULTDIFFERENT 0x100C
  43.  
  44. #define CFERR_CHOOSEFONTCODES  0x2000
  45. #define CFERR_NOFONTS          0x2001
  46. #define CFERR_MAXLESSTHANMIN   0x2002
  47.  
  48. #define FNERR_FILENAMECODES    0x3000
  49. #define FNERR_SUBCLASSFAILURE  0x3001
  50. #define FNERR_INVALIDFILENAME  0x3002
  51. #define FNERR_BUFFERTOOSMALL   0x3003
  52.  
  53. #define FRERR_FINDREPLACECODES 0x4000
  54. #define FRERR_BUFFERLENGTHZERO 0x4001
  55.  
  56. #define CCERR_CHOOSECOLORCODES 0x5000
  57.  
  58. #endif  /* !_INC_CDERR */
  59.