home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwplascr.zip / XWPL0208.ZIP / tools / xpstat / xpstat.h < prev    next >
C/C++ Source or Header  |  2000-03-10  |  3KB  |  96 lines

  1.  
  2. #pragma pack(1)
  3.  
  4. typedef struct _MQ
  5. {
  6.     // offset 0x00
  7.             struct _MQ  *pNextMQ;
  8.         // offset 0x04
  9.             USHORT      usNumberQueued;         // always 0x0020
  10.             USHORT      usQueueEntryLength;     // always 0
  11.         // offset 0x08
  12.             USHORT      _usUnknown1;            // always 0
  13.             USHORT      usQueueDepth;           // always 0
  14.         // offset 0x0c
  15.             ULONG       ulTopOfQueue;           // always 0x0BB8
  16.     // offset 0x10
  17.             ULONG       ulBottomOfQueue;        // always 0x2FFF
  18.         // offset 0x14
  19.             ULONG       ulCurrentRead;
  20.         // offset 0x18
  21.             ULONG       ulCurrentWrite;
  22.         // offset 0x1c
  23.             ULONG       ulRealTID;             // _ulUnknown2; THIS is the TID
  24.     // offset 0x20
  25.             ULONG       _ulUnknown3;            // always 0
  26.         // offset 0x24
  27.             ULONG       _ulPID;                 // always 0
  28.         // offset 0x28
  29.             ULONG       ulRealSID;              // screen group (session) ID; not ulTID
  30.         // offset 0x2c
  31.             // ULONG       _ulSGID;         // wrong
  32.             USHORT      usUnknown4;             // variable; 0x00E0 etc.
  33.             USHORT      us0380;                 // always 0x0380
  34.     // offset 0x30
  35.             ULONG       hevMsg;     // message event semaphore handle
  36.         // offset 0x34
  37.             ULONG       _ulUnknown4[3];
  38.     // offset 0x40
  39.             ULONG       _ulUnknown5;
  40.         // offset 0x44
  41.             ULONG       ulCurrentSentSMS;       // if != 0, thread is blocked
  42.                                                 // in WinSendMsg waiting for response
  43.         // offset 0x48
  44.             ULONG       ulCurrentRcvdSMS;       // if != 0, thread is currently
  45.                                                 // processing message
  46.         // offset 0x4c
  47.             ULONG       _ulUnknown6;
  48.     // offset 0x50
  49.             BYTE        _abFill[0x4c];
  50.     // offset 0x9c
  51.             BYTE        _abSMS[0x08];
  52.     // offset 0xa4
  53.             USHORT      usSlotID;               // slot ID
  54. } MQ, *PMQ;
  55.  
  56. #pragma pack()
  57.  
  58. typedef struct _PROCRECORD
  59. {
  60.     RECORDCORE  recc;
  61.     ULONG       ulPID;
  62.     CHAR        szPID[30];
  63.     PSZ         pszPID;             // points to szPID
  64.     CHAR        szModuleName[300];
  65.     PSZ         pszModuleName;      // points to szModuleName
  66.     CHAR        szTitle[500];
  67.     PQPROCESS32 pProcess;
  68. } PROCRECORD, *PPROCRECORD;
  69.  
  70. typedef struct _MODRECORD
  71. {
  72.     RECORDCORE  recc;
  73.     CHAR        szModuleName[300];
  74.     PSZ         pszModuleName;      // points to szModuleName
  75.     PQMODULE32  pModule;
  76.     BOOL        fSubModulesInserted;
  77. } MODRECORD, *PMODRECORD;
  78.  
  79. #define ID_PROCLISTCNR  1000
  80. #define ID_PROCINFO     1001
  81. #define ID_PROCSPLIT    1002
  82.  
  83. #define ID_XPSM_MAIN        100
  84.  
  85. #define ID_XPSM_XPSTAT      200
  86. #define ID_XPSMI_EXIT       201
  87.  
  88. #define ID_XPSM_VIEW        300
  89. #define ID_XPSMI_PIDLIST    301
  90. #define ID_XPSMI_SIDLIST    302
  91. #define ID_XPSMI_PIDTREE    303
  92. #define ID_XPSMI_MODTREE    304
  93. #define ID_XPSMI_WORDWRAP   305
  94. #define ID_XPSMI_REFRESH    306
  95.  
  96.