home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / IBMH / PMSEI.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  3KB  |  84 lines

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