Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.3 KiB

  1. /*******************************************************************
  2. *
  3. * DESCRIPTION:
  4. * headers for monitoring service for debugger on oca dump processing server
  5. *
  6. * AUTHOR: kksharma
  7. *
  8. * HISTORY:
  9. *
  10. * DATE:9/23/2002
  11. *
  12. *******************************************************************/
  13. #ifndef _OCAMON_H_
  14. #define _OCAMON_H_
  15. #include <windows.h>
  16. #include <wtypes.h>
  17. #include <tchar.h>
  18. const TCHAR c_tszCollectPipeName[] = _T("\\\\.\\pipe\\OcaKdMonPipe");
  19. typedef struct _OCAKD_RESULT {
  20. ULONG SizeOfStruct; // Must be sizeof(OCAKD_RESULT)
  21. CHAR CrashGuid[40]; // Unique id associated with this crash
  22. HRESULT hrAddCrash; // Contains result of database addcrash operation
  23. ULONG SolutionId; // SolutionId for th crash
  24. ULONG ResponseType; // Type of response (depends on solution Id)
  25. CHAR BucketId[100]; // Bucket of the crash
  26. CHAR ArchivePath[200]; // Full path of Archived crash
  27. } OCAKD_RESULT, *POCAKD_RESULT;
  28. typedef struct _DBGLAUNCH_NOTICE {
  29. ULONG SizeOfStruct; // Must be sizeof(DBGLAUNCHER_REPORT)
  30. CHAR CrashGuid[40]; // Guid with which debugger was launched
  31. ULONG Source; // Source of message received
  32. ULONG nKdsRunning; // Dbglauncher's count of number of debuggers running
  33. CHAR OriginalPath[MAX_PATH]; // Path of crash which is going to be analysed
  34. } DBGLAUNCH_NOTICE, *PDBGLAUNCH_NOTICE;
  35. #define OKD_MESSAGE_DEBUGGER_RESULT 1
  36. #define OKD_MESSAGE_DBGLAUNCH_NOTIFY 2
  37. typedef struct _OCAKD_MONITOR_MESSAGE {
  38. ULONG MessageId; // Determines which kind of message is being sent/received
  39. union {
  40. OCAKD_RESULT KdResult; // Message Id should be 1
  41. DBGLAUNCH_NOTICE DbglNotice; // Message Id should be 2
  42. } u;
  43. } OCAKD_MONITOR_MESSAGE, *POCAKD_MONITOR_MESSAGE;
  44. typedef struct _OCAKD_MONITOR_RESULT {
  45. ULONG SizeOfStruct; // must be sizeof (OCAKD_MONITOR_RESULT)
  46. ULONG NumProcessedLas;
  47. ULONG AverageTime; // average time in miliseconds between dbglauncher
  48. } OCAKD_MONITOR_RESULT, *POCAKD_MONITOR_RESULT;
  49. #endif // _OCAMON_H_