home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / bpos13.zip / pmsei.pas < prev    next >
Pascal/Delphi Source File  |  1993-11-24  |  3KB  |  59 lines

  1. {| Unit: pmsei
  2.  | Version: 1.00
  3.  | translated from file pmsei.H
  4.  | Original translation: Peter Sawatzki (ps)
  5.  | Contributing:
  6.  |   (fill in)
  7.  |
  8.  | change history:
  9.  | Date:    Ver: Author:
  10.  | 11/13/93 1.00 ps     original translation by ps
  11. }
  12. Unit pmsei;
  13. Interface
  14. Uses
  15.   Os2Def;
  16. {**************************************************************************\
  17. *
  18. * Module Name: PMSEI.H
  19. *
  20. * OS/2 Presentation Manager SetErrorInfo constants and function declaration
  21. *
  22. * This is included from PMWIN.H when appropriate INCL symbols are defined
  23. *
  24. * =======================================================================
  25.  
  26. { SetErrorInfo API }
  27.  
  28.   {Function WINSETERRORINFO (ERRORID,USHORT,...:): ERRORID cdecl;}
  29.  
  30. Const
  31.   SEI_BREAKPOINT          =  $8000;                { Always enter an INT 3 breakpt          }
  32.   SEI_NOBEEP                       =  $4000;                { Do not call DosBeep                    }
  33.   SEI_NOPROMPT                     =  $2000;                { Do not prompt the user                 }
  34.   SEI_DBGRSRVD                     =  $1000;                { Reserved for debug use                 }
  35.   SEI_STACKTRACE                   =  $0001;                { save the stack trace                   }
  36.   SEI_REGISTERS                    =  $0002;                { save the registers                     }
  37.   SEI_ARGCOUNT                     =  $0004;                { first USHORT in args is arg count      }
  38.   SEI_DOSERROR                     =  $0008;                { first USHORT in args is OS2 error code }
  39.   SEI_MSGSTR                       =  $0010;                { first PSZ in arg -> msg string         }
  40.   SEI_RESERVED                     =  $0FE0;                { Reserved for future use                }
  41.  
  42. { Note that when SEI_ARGCOUNT, SEI_DOSERROR and DOS_MSGSTR are specified     }
  43. { together, then the implied order of the parameters is:                     }
  44. {                                                                            }
  45. {                                                                            }
  46. {  WinSetErrorInfo
  47. {                   SEI_ARGCOUNT | SEI_DOSERROR | SEI_MSGSTR,                }
  48. {                   argCount,                                                }
  49. {                   dosErrorCode,                                            }
  50. {                   "This is the error msg string: %s\n",                    }
  51. {                   "This is an insert for the %s format specifier" );       }
  52. {                                                                            }
  53. Implementation
  54.  
  55.   {Function WINSETERRORINFO;               External '?'        Index    ?;}
  56.  
  57. End.
  58.  
  59.