home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / PMSEI.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  3KB  |  84 lines

  1. /****************************** Module Header *******************************\
  2. *
  3. * Module Name: PMSEI.H
  4. *
  5. * OS/2 Presentation Manager SetErrorInfo constants and function declaration
  6. *
  7. * Copyright (c) International Business Machines Corporation 1981, 1988-1992
  8. *
  9. * ===========================================================================
  10. *
  11. * This is included from PMWIN.H when appropriate INCL symbols are defined
  12. *
  13. * ===========================================================================
  14. *
  15. * Comments at the end of each typedef line give the name tags used in
  16. * the assembler include version of this file.
  17. *
  18. * The assembler include version of this file excludes lines between XLATOFF
  19. * and XLATON comments.
  20. *
  21. \***************************************************************************/
  22.  
  23. /* XLATOFF */
  24.  
  25. #if defined(__IBMC__)
  26.    #pragma info( none )
  27.    #ifndef __CHKHDR__
  28.       #pragma info( none )
  29.    #endif
  30.    #pragma info( restore )
  31. #endif
  32.  
  33. #ifdef __cplusplus
  34.       extern "C" {
  35. #endif
  36. /* XLATON */
  37.  
  38. #define SEI_INCLUDED
  39.  
  40. ERRORID APIENTRY WinSetErrorInfo(ERRORID,
  41.                                  ULONG,
  42.                                  ...);
  43.  
  44. #define SEI_BREAKPOINT   0x8000  /* Always enter an INT 3 breakpt       */
  45. #define SEI_NOBEEP       0x4000  /* Do not call DosBeep                 */
  46. #define SEI_NOPROMPT     0x2000  /* Do not prompt the user              */
  47. #define SEI_DBGRSRVD     0x1000  /* Reserved for debug use              */
  48. #define SEI_DEBUGONLY    (SEI_BREAKPOINT | SEI_NOBEEP | SEI_NOPROMPT | SEI_RESERVED)
  49.  
  50. #define SEI_STACKTRACE   0x0001  /* save the stack trace                */
  51. #define SEI_REGISTERS    0x0002  /* save the registers                  */
  52. #define SEI_ARGCOUNT     0x0004  /* first USHORT in args is arg count   */
  53. #define SEI_DOSERROR     0x0008  /* first USHORT in args is OS2 error code */
  54. #define SEI_RESERVED     0x0FE0  /* Reserved for future use             */
  55.  
  56. /****************************************************************************
  57. * Note that when SEI_ARGCOUNT, SEI_DOSERROR are specified
  58. * together, then the implied order of the parameters is:
  59. *
  60. *
  61. *  WinSetErrorInfo( MAKEERRORID( .... ),
  62. *                   SEI_ARGCOUNT | SEI_DOSERROR,
  63. *                   argCount,
  64. *                   dosErrorCode);
  65. *
  66. ****************************************************************************/
  67.  
  68. /* XLATOFF */
  69. #ifdef __cplusplus
  70.         }
  71. #endif
  72.  
  73. #if defined(__IBMC__)
  74.    #pragma info( none )
  75.    #ifndef __CHKHDR__
  76.       #pragma info( restore )
  77.    #endif
  78.    #pragma info( restore )
  79. #endif    /* __IBMC__ */
  80.  
  81. /* XLATON */
  82.  
  83. /**************************** end of file **********************************/
  84.