pviewdat.h
上传用户:jinandeyu
上传日期:2007-01-05
资源大小:620k
文件大小:8k
源码类别:

远程控制编程

开发平台:

WINDOWS

  1. /*  Back Orifice 2000 - Remote Administration Suite
  2.     Copyright (C) 1999, Cult Of The Dead Cow
  3.     This program is free software; you can redistribute it and/or modify
  4.     it under the terms of the GNU General Public License as published by
  5.     the Free Software Foundation; either version 2 of the License, or
  6.     (at your option) any later version.
  7.     This program is distributed in the hope that it will be useful,
  8.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.     GNU General Public License for more details.
  11.     You should have received a copy of the GNU General Public License
  12.     along with this program; if not, write to the Free Software
  13.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  14. The author of this program may be contacted at dildog@l0pht.com. */
  15. #ifndef __INC_PVIEWDAT_H
  16. #define __INC_PVIEWDAT_H
  17. #include<windows.h>
  18. #include<winperf.h>
  19. //  Titles and indexes. 
  20. // 
  21. //  See GetPerfTitleSz/msg () in perfdata.c on how to retrieve these data. 
  22. // 
  23. //  This is not complete, for complete listing 
  24. //  see under hkey_local_system 
  25. //               software 
  26. //                   microsoft 
  27. //                       windows nt 
  28. //                           currentversion 
  29. //                               perflib 
  30. //                                   ### 
  31. // 
  32.  
  33. #define PN_PROCESS                          TEXT("Process") 
  34. #define PN_PROCESS_CPU                      TEXT("% Processor Time") 
  35. #define PN_PROCESS_PRIV                     TEXT("% Privileged Time") 
  36. #define PN_PROCESS_USER                     TEXT("% User Time") 
  37. #define PN_PROCESS_WORKING_SET              TEXT("Working Set") 
  38. #define PN_PROCESS_PEAK_WS                  TEXT("Working Set Peak") 
  39. #define PN_PROCESS_PRIO                     TEXT("Priority Base") 
  40. #define PN_PROCESS_ELAPSE                   TEXT("Elapsed Time") 
  41. #define PN_PROCESS_ID                       TEXT("ID Process") 
  42. #define PN_PROCESS_PRIVATE_PAGE             TEXT("Private Bytes") 
  43. #define PN_PROCESS_VIRTUAL_SIZE             TEXT("Virtual Bytes") 
  44. #define PN_PROCESS_PEAK_VS                  TEXT("Virtual Bytes Peak") 
  45. #define PN_PROCESS_FAULT_COUNT              TEXT("Page Faults/sec") 
  46.  
  47.  
  48. #define PN_THREAD                           TEXT("Thread") 
  49. #define PN_THREAD_CPU                       TEXT("% Processor Time") 
  50. #define PN_THREAD_PRIV                      TEXT("% Privileged Time") 
  51. #define PN_THREAD_USER                      TEXT("% User Time") 
  52. #define PN_THREAD_START                     TEXT("Start Address") 
  53. #define PN_THREAD_SWITCHES                  TEXT("Context Switches/sec") 
  54. #define PN_THREAD_PRIO                      TEXT("Priority Current") 
  55. #define PN_THREAD_BASE_PRIO                 TEXT("Priority Base") 
  56. #define PN_THREAD_ELAPSE                    TEXT("Elapsed Time") 
  57. #define PN_THREAD_ID TEXT("ID Thread") 
  58. #define PN_THREAD_DETAILS                   TEXT("Thread Details") 
  59. #define PN_THREAD_PC                        TEXT("User PC") 
  60.  
  61. #define PN_IMAGE                            TEXT("Image") 
  62. #define PN_IMAGE_NOACCESS                   TEXT("No Access") 
  63. #define PN_IMAGE_READONLY                   TEXT("Read Only") 
  64. #define PN_IMAGE_READWRITE                  TEXT("Read/Write") 
  65. #define PN_IMAGE_WRITECOPY                  TEXT("Write Copy") 
  66. #define PN_IMAGE_EXECUTABLE                 TEXT("Executable") 
  67. #define PN_IMAGE_EXE_READONLY               TEXT("Exec Read Only") 
  68. #define PN_IMAGE_EXE_READWRITE              TEXT("Exec Read/Write") 
  69. #define PN_IMAGE_EXE_WRITECOPY              TEXT("Exec Write Copy") 
  70.  
  71.  
  72. #define PN_PROCESS_ADDRESS_SPACE            TEXT("Process Address Space") 
  73. #define PN_PROCESS_PRIVATE_NOACCESS         TEXT("Reserved Space No Access") 
  74. #define PN_PROCESS_PRIVATE_READONLY         TEXT("Reserved Space Read Only") 
  75. #define PN_PROCESS_PRIVATE_READWRITE        TEXT("Reserved Space Read/Write") 
  76. #define PN_PROCESS_PRIVATE_WRITECOPY        TEXT("Reserved Space Write Copy") 
  77. #define PN_PROCESS_PRIVATE_EXECUTABLE       TEXT("Reserved Space Executable") 
  78. #define PN_PROCESS_PRIVATE_EXE_READONLY     TEXT("Reserved Space Exec Read Only") 
  79. #define PN_PROCESS_PRIVATE_EXE_READWRITE    TEXT("Reserved Space Exec Read/Write") 
  80. #define PN_PROCESS_PRIVATE_EXE_WRITECOPY    TEXT("Reserved Space Exec Write Copy") 
  81.  
  82.  
  83. #define PN_PROCESS_MAPPED_NOACCESS          TEXT("Mapped Space No Access") 
  84. #define PN_PROCESS_MAPPED_READONLY          TEXT("Mapped Space Read Only") 
  85. #define PN_PROCESS_MAPPED_READWRITE         TEXT("Mapped Space Read/Write") 
  86. #define PN_PROCESS_MAPPED_WRITECOPY         TEXT("Mapped Space Write Copy") 
  87. #define PN_PROCESS_MAPPED_EXECUTABLE        TEXT("Mapped Space Executable") 
  88. #define PN_PROCESS_MAPPED_EXE_READONLY      TEXT("Mapped Space Exec Read Only") 
  89. #define PN_PROCESS_MAPPED_EXE_READWRITE     TEXT("Mapped Space Exec Read/Write") 
  90. #define PN_PROCESS_MAPPED_EXE_WRITECOPY     TEXT("Mapped Space Exec Write Copy") 
  91.  
  92.  
  93. #define PN_PROCESS_IMAGE_NOACCESS           TEXT("Image Space No Access") 
  94. #define PN_PROCESS_IMAGE_READONLY           TEXT("Image Space Read Only") 
  95. #define PN_PROCESS_IMAGE_READWRITE          TEXT("Image Space Read/Write") 
  96. #define PN_PROCESS_IMAGE_WRITECOPY          TEXT("Image Space Write Copy") 
  97. #define PN_PROCESS_IMAGE_EXECUTABLE         TEXT("Image Space Executable") 
  98. #define PN_PROCESS_IMAGE_EXE_READONLY       TEXT("Image Space Exec Read Only") 
  99. #define PN_PROCESS_IMAGE_EXE_READWRITE      TEXT("Image Space Exec Read/Write") 
  100. #define PN_PROCESS_IMAGE_EXE_WRITECOPY      TEXT("Image Space Exec Write Copy") 
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108. DWORD   PX_PROCESS; 
  109. DWORD   PX_PROCESS_CPU; 
  110. DWORD   PX_PROCESS_PRIV; 
  111. DWORD   PX_PROCESS_USER; 
  112. DWORD   PX_PROCESS_WORKING_SET; 
  113. DWORD   PX_PROCESS_PEAK_WS; 
  114. DWORD   PX_PROCESS_PRIO; 
  115. DWORD   PX_PROCESS_ELAPSE; 
  116. DWORD   PX_PROCESS_ID; 
  117. DWORD   PX_PROCESS_PRIVATE_PAGE; 
  118. DWORD   PX_PROCESS_VIRTUAL_SIZE; 
  119. DWORD   PX_PROCESS_PEAK_VS; 
  120. DWORD   PX_PROCESS_FAULT_COUNT; 
  121. DWORD   PX_PROCESS_PAGED_POOL_QUOTA; 
  122. DWORD   PX_PROCESS_PEAK_PAGED_POOL_QUOTA; 
  123. DWORD   PX_PROCESS_NONPAGED_POOL_QUOTA; 
  124. DWORD   PX_PROCESS_PEAK_PAGED_POOL; 
  125. DWORD   PX_PROCESS_PEAK_NONPAGED_POOL; 
  126. DWORD   PX_PROCESS_CUR_PAGED_POOL; 
  127. DWORD   PX_PROCESS_CUR_NONPAGED_POOL; 
  128. DWORD   PX_PROCESS_PAGED_POOL_LIMIT; 
  129. DWORD   PX_PROCESS_NONPAGED_POOL_LIMIT; 
  130.  
  131.  
  132. DWORD   PX_THREAD; 
  133. DWORD   PX_THREAD_CPU; 
  134. DWORD   PX_THREAD_PRIV; 
  135. DWORD   PX_THREAD_USER; 
  136. DWORD   PX_THREAD_START; 
  137. DWORD   PX_THREAD_SWITCHES; 
  138. DWORD   PX_THREAD_PRIO; 
  139. DWORD   PX_THREAD_BASE_PRIO; 
  140. DWORD   PX_THREAD_ELAPSE; 
  141. DWORD PX_THREAD_ID; 
  142. DWORD   PX_THREAD_DETAILS; 
  143. DWORD   PX_THREAD_PC; 
  144.  
  145. DWORD   PX_IMAGE; 
  146. DWORD   PX_IMAGE_NOACCESS; 
  147. DWORD   PX_IMAGE_READONLY; 
  148. DWORD   PX_IMAGE_READWRITE; 
  149. DWORD   PX_IMAGE_WRITECOPY; 
  150. DWORD   PX_IMAGE_EXECUTABLE; 
  151. DWORD   PX_IMAGE_EXE_READONLY; 
  152. DWORD   PX_IMAGE_EXE_READWRITE; 
  153. DWORD   PX_IMAGE_EXE_WRITECOPY; 
  154.  
  155.  
  156. DWORD   PX_PROCESS_ADDRESS_SPACE; 
  157. DWORD   PX_PROCESS_PRIVATE_NOACCESS; 
  158. DWORD   PX_PROCESS_PRIVATE_READONLY; 
  159. DWORD   PX_PROCESS_PRIVATE_READWRITE; 
  160. DWORD   PX_PROCESS_PRIVATE_WRITECOPY; 
  161. DWORD   PX_PROCESS_PRIVATE_EXECUTABLE; 
  162. DWORD   PX_PROCESS_PRIVATE_EXE_READONLY; 
  163. DWORD   PX_PROCESS_PRIVATE_EXE_READWRITE; 
  164. DWORD   PX_PROCESS_PRIVATE_EXE_WRITECOPY; 
  165.  
  166.  
  167. DWORD   PX_PROCESS_MAPPED_NOACCESS; 
  168. DWORD   PX_PROCESS_MAPPED_READONLY; 
  169. DWORD   PX_PROCESS_MAPPED_READWRITE; 
  170. DWORD   PX_PROCESS_MAPPED_WRITECOPY; 
  171. DWORD   PX_PROCESS_MAPPED_EXECUTABLE; 
  172. DWORD   PX_PROCESS_MAPPED_EXE_READONLY; 
  173. DWORD   PX_PROCESS_MAPPED_EXE_READWRITE; 
  174. DWORD   PX_PROCESS_MAPPED_EXE_WRITECOPY; 
  175.  
  176.  
  177. DWORD   PX_PROCESS_IMAGE_NOACCESS; 
  178. DWORD   PX_PROCESS_IMAGE_READONLY; 
  179. DWORD   PX_PROCESS_IMAGE_READWRITE; 
  180. DWORD   PX_PROCESS_IMAGE_WRITECOPY; 
  181. DWORD   PX_PROCESS_IMAGE_EXECUTABLE; 
  182. DWORD   PX_PROCESS_IMAGE_EXE_READONLY; 
  183. DWORD   PX_PROCESS_IMAGE_EXE_READWRITE; 
  184. DWORD   PX_PROCESS_IMAGE_EXE_WRITECOPY; 
  185.  
  186. #endif