home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / pmsei.h < prev    next >
C/C++ Source or Header  |  1999-04-30  |  3KB  |  80 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. #if __IBMC__ || __IBMCPP__
  25.    #pragma info( none )
  26.    #ifndef __CHKHDR__
  27.       #pragma info( none )
  28.    #endif
  29.    #pragma info( restore )
  30. #endif
  31. #ifdef __cplusplus
  32.       extern "C" {
  33. #endif
  34. /* XLATON */
  35.  
  36. #define SEI_INCLUDED
  37.  
  38. ERRORID APIENTRY WinSetErrorInfo(ERRORID,
  39.                                  ULONG,
  40.                                  ...);
  41.  
  42. #define SEI_BREAKPOINT   0x8000  /* Always enter an INT 3 breakpt       */
  43. #define SEI_NOBEEP       0x4000  /* Do not call DosBeep                 */
  44. #define SEI_NOPROMPT     0x2000  /* Do not prompt the user              */
  45. #define SEI_DBGRSRVD     0x1000  /* Reserved for debug use              */
  46. #define SEI_DEBUGONLY    (SEI_BREAKPOINT | SEI_NOBEEP | SEI_NOPROMPT | SEI_RESERVED)
  47.  
  48. #define SEI_STACKTRACE   0x0001  /* save the stack trace                */
  49. #define SEI_REGISTERS    0x0002  /* save the registers                  */
  50. #define SEI_ARGCOUNT     0x0004  /* first USHORT in args is arg count   */
  51. #define SEI_DOSERROR     0x0008  /* first USHORT in args is OS2 error code */
  52. #define SEI_RESERVED     0x0FE0  /* Reserved for future use             */
  53.  
  54. /****************************************************************************
  55. * Note that when SEI_ARGCOUNT, SEI_DOSERROR are specified
  56. * together, then the implied order of the parameters is:
  57. *
  58. *
  59. *  WinSetErrorInfo( MAKEERRORID( .... ),
  60. *                   SEI_ARGCOUNT | SEI_DOSERROR,
  61. *                   argCount,
  62. *                   dosErrorCode);
  63. *
  64. ****************************************************************************/
  65.  
  66. /* XLATOFF */
  67. #ifdef __cplusplus
  68.         }
  69. #endif
  70. #if __IBMC__ || __IBMCPP__
  71.    #pragma info( none )
  72.    #ifndef __CHKHDR__
  73.       #pragma info( restore )
  74.    #endif
  75.    #pragma info( restore )
  76. #endif
  77. /* XLATON */
  78.  
  79. /**************************** end of file **********************************/
  80.