home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sd386v50.zip / sd386src.zip / DBGQ.H < prev    next >
Text File  |  1995-10-03  |  3KB  |  64 lines

  1. /*****************************************************************************/
  2. /* File:                                                                     */
  3. /*   dbgq.h                                                               919*/
  4. /*                                                                           */
  5. /* Description:                                                              */
  6. /*                                                                           */
  7. /*   Queue structures and message definitions for Dbg.                       */
  8. /*                                                                           */
  9. /* History:                                                                  */
  10. /*                                                                           */
  11. /*   06/10/94 Created.                                                       */
  12. /*                                                                           */
  13. /*****************************************************************************/
  14.  
  15. /*****************************************************************************/
  16. /* Structure of the Dbg session queue element.                               */
  17. /*****************************************************************************/
  18. typedef struct _dbgmsgflags
  19. {
  20.  int   InformEsp :1;                    /* TRUE==>inform FALSE==>noinform    */
  21.  int   Reserved  :31;
  22. }DBG_MSG_FLAGS;
  23.  
  24. typedef struct
  25. {
  26.  USHORT        pid;
  27.  ULONG         sid;
  28.  ULONG         type;
  29.  DBG_MSG_FLAGS DbgMsgFlags;
  30.  char          FileSpec[512];
  31. }DBG_QUE_ELEMENT;
  32.  
  33. #define DBG_QMSG_CTRL_BREAK        100
  34. #define DBG_QMSG_OPEN_CONNECT      101
  35. #define DBG_QMSG_QUE_TERM          102
  36. #define DBG_QMSG_NEW_PROCESS       103
  37. #define DBG_QMSG_DISCONNECT        104    /* Serial connections only.        */
  38. #define DBG_QMSG_CONNECT_ESP       105    /* Serial connections only.        */
  39. #define DBG_QMSG_SELECT_SESSION    106
  40. #define DBG_QMSG_ERROR             107
  41. #define DBG_QMSG_KILL_LISTEN       108
  42. #define DBG_QMSG_PARENT_TERM       109
  43. #define DBG_QMSG_CHILD_TERM        110
  44. #define DBG_QMSG_SELECT_PARENT_ESP 111
  45. #define DBG_QMSG_REQUEST_ACCESS    112  /* for my debugging only.            */
  46.  
  47. /*****************************************************************************/
  48. /* - Termination que messages.                                               */
  49. /*****************************************************************************/
  50. #define DBG_TERMINATE            400
  51. #define DBG_PROBE_TERM           401
  52.  
  53. /*****************************************************************************/
  54. /*   PollingThreadFlag states:                                               */
  55. /*                                                                           */
  56. /*    RUNNING        Thread is running.                                      */
  57. /*    NOT_RUNNING    Thread is not running.                                  */
  58. /*    THREAD_TERM    Transitional state from RUNNING to NOT_RUNNING.         */
  59. /*                                                                           */
  60. /*****************************************************************************/
  61. #define RUNNING      0
  62. #define NOT_RUNNING  1
  63. #define THREAD_TERM  2
  64.