Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.6 KiB

  1. /****************************************************************************
  2. Unit Error; Interface
  3. *****************************************************************************
  4. Error handles all the interpretation, metafile creation, or read failures
  5. that may occur during the course of the translation.
  6. Module Prefix: Er
  7. *****************************************************************************/
  8. /********************* Exported Data ***************************************/
  9. #define ErNoError NOERR
  10. #define ErInvalidVersion 1 /* file is not version 1 or 2 */
  11. #define ErInvalidVersionID 2 /* PICT 2 version ID invalid */
  12. #define ErBadHeaderSequence 3 /* PICT 2 HeaderOp not found */
  13. #define ErInvalidPrefsHeader 4 /* Preferences header invalid */
  14. #define ErNoSourceFormat 5 /* no source filename/handle given */
  15. #define ErMemoryFull 10 /* GlobalAlloc() fail */
  16. #define ErMemoryFail 11 /* GlobalLock() fail */
  17. #define ErCreateMetafileFail 12 /* CreateMetafile() fail */
  18. #define ErCloseMetafileFail 13 /* CloseMetafile() fail */
  19. #define ErEmptyPicture 20 /* no primitives found in file */
  20. #define ErNullBoundingRect 30 /* BBox defines NULL area */
  21. #define Er32KBoundingRect 31 /* BBox extents exceed 32K */
  22. #define ErReadPastEOF 40 /* Attempt to read past end of file */
  23. #define ErOpenFail 41 /* OpenFile() failed */
  24. #define ErReadFail 42 /* read from disk failed */
  25. #define ErNonSquarePen 50 /* non-square pen & user pref abort */
  26. #define ErPatternedPen 51 /* patterned pen & user pref abort */
  27. #define ErInvalidXferMode 52 /* invalid transfer mode & abort */
  28. #define ErNonRectRegion 53 /* non-rectangular region abort */
  29. #define ErNoDialogBox 60 /* unable to run status dialog box */
  30. extern OSErr globalError;
  31. /*********************** Exported Function Definitions **********************/
  32. #define ErSetGlobalError( /* OSErr */ error ) \
  33. /* callback function that allows any routine to set a global error state */ \
  34. globalError = error
  35. #define ErGetGlobalError( /* void */ ) \
  36. /* callback function that allows any routine to get global error state */ \
  37. globalError
  38. OSErr ErInternalErrorToAldus( void );
  39. /* returns the appropriate Aldus error code given the current global error */
  40.