home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H / PMSEI.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  5KB  |  119 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. #ifndef __IBMC__
  32.    * The public version of this file (as shipped with the OS/2 Toolkit
  33.    * product) excludes all non 32-bit material marked in this file
  34.    * as well as any areas specifically marked with __IBMC__ conditional
  35.    * sections - including this paragraph. The H2IBMH rexx command file
  36.    * removes these sections.
  37. #endif
  38. \***************************************************************************/
  39.  
  40. /* XLATOFF */
  41. #ifdef __IBMC__
  42.    #pragma checkout( suspend )
  43.       #ifndef __CHKHDR__
  44.          #pragma checkout( suspend )
  45.       #endif
  46.    #pragma checkout( resume )
  47. #endif
  48. /* XLATON */
  49.  
  50. #define SEI_INCLUDED
  51.  
  52. #ifdef INCL_32
  53.    ERRORID APIENTRY WinSetErrorInfo(ERRORID, ULONG, ...);
  54. #else
  55.    /* XLATOFF */
  56.    #define WinSetErrorInfo WINSETERRORINFO
  57.    /* XLATON */
  58.  
  59.    ERRORID _cdecl FAR WINSETERRORINFO(ERRORID, USHORT, ...);
  60. #endif
  61.  
  62. #define SEI_BREAKPOINT   0x8000  /* Always enter an INT 3 breakpt       */
  63. #define SEI_NOBEEP       0x4000  /* Do not call DosBeep                 */
  64. #define SEI_NOPROMPT     0x2000  /* Do not prompt the user              */
  65. #define SEI_DBGRSRVD     0x1000  /* Reserved for debug use              */
  66. #define SEI_DEBUGONLY    (SEI_BREAKPOINT | SEI_NOBEEP | SEI_NOPROMPT | SEI_RESERVED)
  67.  
  68. #define SEI_STACKTRACE   0x0001  /* save the stack trace                */
  69. #define SEI_REGISTERS    0x0002  /* save the registers                  */
  70. #define SEI_ARGCOUNT     0x0004  /* first USHORT in args is arg count   */
  71. #define SEI_DOSERROR     0x0008  /* first USHORT in args is OS2 error code */
  72. #ifndef INCL_32
  73.    #define SEI_MSGSTR    0x0010  /* first PSZ in arg -> msg string      */
  74. #endif
  75. #define SEI_RESERVED     0x0FE0  /* Reserved for future use             */
  76.  
  77. #ifdef INCL_32
  78. /****************************************************************************
  79. * Note that when SEI_ARGCOUNT, SEI_DOSERROR are specified
  80. * together, then the implied order of the parameters is:
  81. *
  82. *
  83. *  WinSetErrorInfo( MAKEERRORID( .... ),
  84. *                   SEI_ARGCOUNT | SEI_DOSERROR,
  85. *                   argCount,
  86. *                   dosErrorCode);
  87. *
  88. ****************************************************************************/
  89. #else
  90. /***************************************************************************
  91. * The DOS_MSGSTR flag is not supported in 32-bit yet, put two separate
  92. * comments in file so that 32-bit only version has correct info.
  93. *
  94. * Note that when SEI_ARGCOUNT, SEI_DOSERROR and DOS_MSGSTR are specified
  95. * together, then the implied order of the parameters is:
  96. *
  97. *
  98. *  WinSetErrorInfo( MAKEERRORID( .... ),
  99. *                   SEI_ARGCOUNT | SEI_DOSERROR | SEI_MSGSTR,
  100. *                   argCount,
  101. *                   dosErrorCode,
  102. *                   "This is the error msg string: %s\n",
  103. *                   "This is an insert for the %s format specifier" );
  104. *
  105. ****************************************************************************/
  106. #endif
  107.  
  108. /* XLATOFF */
  109. #ifdef __IBMC__
  110.    #pragma checkout( suspend )
  111.       #ifndef __CHKHDR__
  112.          #pragma checkout( resume )
  113.       #endif
  114.    #pragma checkout( resume )
  115. #endif
  116. /* XLATON */
  117.  
  118. /**************************** end of file **********************************/
  119.