home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / image / winnt / pfmon / errormsg.h < prev    next >
C/C++ Source or Header  |  1998-03-30  |  3KB  |  139 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1991-1997  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     errormsg.h
  8.  
  9. Abstract:
  10.  
  11.     This file contains the error code definitions and message for the
  12.     PFMON program.
  13.  
  14. Author:
  15.  
  16.     Steve Wood (stevewo) 09-Aug-1994
  17.  
  18. --*/
  19.  
  20. #ifndef _PFMON_ERRORMSG_
  21. #define _PFMON_ERRORMSG_
  22.  
  23.  
  24. #define FACILITY_NT 0x0FFF0000
  25. //
  26. //  Values are 32 bit values layed out as follows:
  27. //
  28. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  29. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  30. //  +---+-+-+-----------------------+-------------------------------+
  31. //  |Sev|C|R|     Facility          |               Code            |
  32. //  +---+-+-+-----------------------+-------------------------------+
  33. //
  34. //  where
  35. //
  36. //      Sev - is the severity code
  37. //
  38. //          00 - Success
  39. //          01 - Informational
  40. //          10 - Warning
  41. //          11 - Error
  42. //
  43. //      C - is the Customer code flag
  44. //
  45. //      R - is a reserved bit
  46. //
  47. //      Facility - is the facility code
  48. //
  49. //      Code - is the facility's status code
  50. //
  51. //
  52. // Define the facility codes
  53. //
  54. #define FACILITY_APPLICATION             0x100
  55.  
  56.  
  57. //
  58. // Define the severity codes
  59. //
  60. #define APP_SEVERITY_WARNING             0x2
  61. #define APP_SEVERITY_SUCCESS             0x0
  62. #define APP_SEVERITY_INFORMATIONAL       0x1
  63. #define APP_SEVERITY_ERROR               0x3
  64.  
  65.  
  66. //
  67. // MessageId: PFMON_CANT_DEBUG_PROGRAM
  68. //
  69. // MessageText:
  70. //
  71. //  Unable to debug '%1'
  72. //
  73. #define PFMON_CANT_DEBUG_PROGRAM         0xC1000001L
  74.  
  75. //
  76. // MessageId: PFMON_CANT_DEBUG_ACTIVE_PROGRAM
  77. //
  78. // MessageText:
  79. //
  80. //  Unable to attach to PID (%1!x!)
  81. //
  82. #define PFMON_CANT_DEBUG_ACTIVE_PROGRAM  0xC1000002L
  83.  
  84. //
  85. // MessageId: PFMON_CONTDEBUGEVENT_FAILED
  86. //
  87. // MessageText:
  88. //
  89. //  Unable to continue debug event.
  90. //
  91. #define PFMON_CONTDEBUGEVENT_FAILED      0xC1000003L
  92.  
  93. //
  94. // MessageId: PFMON_WAITDEBUGEVENT_FAILED
  95. //
  96. // MessageText:
  97. //
  98. //  Unable to wait for debug event.
  99. //
  100. #define PFMON_WAITDEBUGEVENT_FAILED      0xC1000004L
  101.  
  102. //
  103. // MessageId: PFMON_DUPLICATE_PROCESS_ID
  104. //
  105. // MessageText:
  106. //
  107. //  Duplicate Process Id (%1!x!).
  108. //
  109. #define PFMON_DUPLICATE_PROCESS_ID       0xC1000005L
  110.  
  111. //
  112. // MessageId: PFMON_MISSING_PROCESS_ID
  113. //
  114. // MessageText:
  115. //
  116. //  Missing Process Id (%1!x!).
  117. //
  118. #define PFMON_MISSING_PROCESS_ID         0xC1000006L
  119.  
  120. //
  121. // MessageId: PFMON_DUPLICATE_THREAD_ID
  122. //
  123. // MessageText:
  124. //
  125. //  Duplicate Thread Id (%1!x!) for Process Id (%2!x!)
  126. //
  127. #define PFMON_DUPLICATE_THREAD_ID        0xC1000007L
  128.  
  129. //
  130. // MessageId: PFMON_MISSING_THREAD_ID
  131. //
  132. // MessageText:
  133. //
  134. //  Missing Thread Id (%1!x!) for Process Id (%2!x!)
  135. //
  136. #define PFMON_MISSING_THREAD_ID          0xC1000008L
  137.  
  138. #endif // _PFMON_ERRORMSG_
  139.