home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / os2tk21j / c / os2h / pmsei.h__ / pmsei.h
Encoding:
C/C++ Source or Header  |  1993-04-22  |  2.6 KB  |  74 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. #ifdef __IBMC__
  25.    #pragma checkout( suspend )
  26.    #ifndef __CHKHDR__
  27.       #pragma checkout( suspend )
  28.    #endif
  29.    #pragma checkout( resume )
  30. #endif
  31. /* XLATON */
  32.  
  33. #define SEI_INCLUDED
  34.  
  35. ERRORID APIENTRY WinSetErrorInfo(ERRORID,
  36.                                  ULONG,
  37.                                  ...);
  38.  
  39. #define SEI_BREAKPOINT   0x8000  /* Always enter an INT 3 breakpt       */
  40. #define SEI_NOBEEP       0x4000  /* Do not call DosBeep                 */
  41. #define SEI_NOPROMPT     0x2000  /* Do not prompt the user              */
  42. #define SEI_DBGRSRVD     0x1000  /* Reserved for debug use              */
  43. #define SEI_DEBUGONLY    (SEI_BREAKPOINT | SEI_NOBEEP | SEI_NOPROMPT | SEI_RESERVED)
  44.  
  45. #define SEI_STACKTRACE   0x0001  /* save the stack trace                */
  46. #define SEI_REGISTERS    0x0002  /* save the registers                  */
  47. #define SEI_ARGCOUNT     0x0004  /* first USHORT in args is arg count   */
  48. #define SEI_DOSERROR     0x0008  /* first USHORT in args is OS2 error code */
  49. #define SEI_RESERVED     0x0FE0  /* Reserved for future use             */
  50.  
  51. /****************************************************************************
  52. * Note that when SEI_ARGCOUNT, SEI_DOSERROR are specified
  53. * together, then the implied order of the parameters is:
  54. *
  55. *
  56. *  WinSetErrorInfo( MAKEERRORID( .... ),
  57. *                   SEI_ARGCOUNT | SEI_DOSERROR,
  58. *                   argCount,
  59. *                   dosErrorCode);
  60. *
  61. ****************************************************************************/
  62.  
  63. /* XLATOFF */
  64. #ifdef __IBMC__
  65.    #pragma checkout( suspend )
  66.    #ifndef __CHKHDR__
  67.       #pragma checkout( resume )
  68.    #endif
  69.    #pragma checkout( resume )
  70. #endif
  71. /* XLATON */
  72.  
  73. /**************************** end of file **********************************/
  74.