home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cscout.zip / SAMPLES / MTESTPM.H < prev    next >
Text File  |  1995-05-24  |  4KB  |  93 lines

  1. /************************************************************************/
  2. /***                                                                  ***/
  3. /*** AUTHOR :            RH                                           ***/
  4. /***                                                                  ***/
  5. /*** SHORT DESCRIPTION : header file for all non resource related     ***/
  6. /***                     definitions of mtestpm.exe                   ***/
  7. /***                                                                  ***/
  8. /*** COPYRIGHT         : (C) 1995 a priori Computer Solutions GmbH    ***/
  9. /***                                                                  ***/
  10. /************************************************************************/
  11.  
  12. /*----------------------------------------------------------------------*/
  13. /* includes                                                             */
  14. /*----------------------------------------------------------------------*/
  15.  
  16. #include <setjmp.h>
  17.  
  18. /*----------------------------------------------------------------------*/
  19. /* defines                                                              */
  20. /*----------------------------------------------------------------------*/
  21.  
  22. #define  MESSAGELEN 80
  23. #define  DUMP_BUFFER_LEN           4096L    /* 4K      */
  24. #define  EXCEPTION              "An exception has occurred"
  25.  
  26. /*----------------------------------------------------------------------*/
  27. /* typedefs                                                             */
  28. /*----------------------------------------------------------------------*/
  29.  
  30. /* typedef for FNEH: an exception handler function  */
  31. /* -----------------------------------------------  */
  32.  
  33. #ifdef __IBMC__
  34. typedef ULONG _System FNEH( PEXCEPTIONREPORTRECORD,
  35. #else
  36. typedef ULONG _syscall FNEH( PEXCEPTIONREPORTRECORD,
  37. #endif
  38.                              PEXCEPTIONREGISTRATIONRECORD,
  39.                              PCONTEXTRECORD,
  40.                              PVOID );
  41.  
  42. typedef FNEH *PFNEH;
  43.  
  44. /* structures for Exception handling   */
  45. /* ---------------------------------   */
  46.  
  47. /* typedef for the structure which is pointed to in exception record */
  48. typedef struct __UserExcRec
  49.   {
  50.  
  51.   PVOID       pvBuffer;                /* output buffer for debug  */
  52.   jmp_buf     jmp;                     /* long jump buffer         */
  53.  
  54.   } _UserExcRec;
  55.  
  56. typedef _UserExcRec  *PUSEREXREC;
  57.  
  58. /* typedef for a handler registration record; a link in a list */
  59. typedef struct __regrec
  60.   {
  61.   // these two fields are defined by os2 and required
  62.   PEXCEPTIONREGISTRATIONRECORD pnext;
  63.   PFNEH                        pfnHandler;
  64.  
  65.   // user-defined fields
  66.   PUSEREXREC           pstUserExRec;   // pointer to user defined fields
  67.   } _REGREC;
  68.  
  69. typedef _REGREC *PREGREC;
  70.  
  71. /*----------------------------------------------------------------------*/
  72. /* declarations                                                         */
  73. /*----------------------------------------------------------------------*/
  74.  
  75. /* miscellaneous helper functions of module misc.c */
  76.  
  77. VOID MiscDisplayMsg ( HWND   hwndOwner,
  78.                       SHORT  idMsg,
  79.                       SHORT  fsStyle,
  80.                       BOOL   fBeep );
  81.  
  82. VOID MiscCenterDialog( HWND   hwndParent,
  83.                        HWND   hwndDialog);
  84.  
  85. VOID MiscInitHelp(HWND hwnd);
  86. VOID MiscDisplayHelp( ULONG   msg,
  87.                       USHORT  usPanelId);
  88. VOID MiscDestroyHelp(VOID);
  89.  
  90. /************************************************************************/
  91. /*** EOF mtestpm.h                                                    ***/
  92. /************************************************************************/
  93.