Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

userdata.c

Go to the documentation of this file.
00001 /*++ BUILD Version: 0001 00002 00003 Copyright (c) 1985 - 1999, Microsoft Corporation 00004 00005 Module Name: 00006 00007 userdata.c 00008 00009 Abstract: 00010 00011 A file containing the constant data structures used by the Performance 00012 Monitor data for the USER Extensible Objects. 00013 00014 Revision History: 00015 00016 Sept 97 MCostea Created 00017 Oct. 97 MCostea Added Critical Section Object 00018 00019 --*/ 00020 // 00021 // Include Files 00022 // 00023 00024 #include <windows.h> 00025 #include <winperf.h> 00026 #include "userctrnm.h" 00027 #include "userdata.h" 00028 00029 // 00030 // Constant structure initializations 00031 // defined in userdata.h 00032 // 00033 00034 USER_DATA_DEFINITION UserDataDefinition = { 00035 00036 { 00037 0, 00038 sizeof(UserDataDefinition), 00039 sizeof(PERF_OBJECT_TYPE), 00040 USEROBJ, 00041 NULL, 00042 USEROBJ, 00043 NULL, 00044 PERF_DETAIL_NOVICE, 00045 NUM_USER_COUNTERS, 00046 0, 00047 0, 00048 0 00049 }, 00050 00051 { 00052 sizeof(PERF_COUNTER_DEFINITION), 00053 TOTALS, 00054 NULL, 00055 TOTALS, 00056 NULL, 00057 0, 00058 PERF_DETAIL_NOVICE, 00059 PERF_COUNTER_RAWCOUNT, 00060 sizeof(DWORD), 00061 NUM_TOTALS_OFFSET 00062 }, 00063 00064 { 00065 sizeof(PERF_COUNTER_DEFINITION), 00066 FREEONES, 00067 NULL, 00068 FREEONES, 00069 NULL, 00070 0, 00071 PERF_DETAIL_NOVICE, 00072 PERF_COUNTER_RAWCOUNT, 00073 sizeof(DWORD), 00074 NUM_FREEONES_OFFSET 00075 }, 00076 00077 { 00078 sizeof(PERF_COUNTER_DEFINITION), 00079 WINDOWS, 00080 NULL, 00081 WINDOWS, 00082 NULL, 00083 0, 00084 PERF_DETAIL_NOVICE, 00085 PERF_COUNTER_RAWCOUNT, 00086 sizeof(DWORD), 00087 NUM_WINDOWS_OFFSET 00088 }, 00089 00090 { 00091 sizeof(PERF_COUNTER_DEFINITION), 00092 MENUS, 00093 NULL, 00094 MENUS, 00095 NULL, 00096 0, 00097 PERF_DETAIL_NOVICE, 00098 PERF_COUNTER_RAWCOUNT, 00099 sizeof(DWORD), 00100 NUM_MENUS_OFFSET 00101 }, 00102 00103 { 00104 sizeof(PERF_COUNTER_DEFINITION), 00105 CURSORS, 00106 NULL, 00107 CURSORS, 00108 NULL, 00109 0, 00110 PERF_DETAIL_NOVICE, 00111 PERF_COUNTER_RAWCOUNT, 00112 sizeof(DWORD), 00113 NUM_CURSORS_OFFSET 00114 }, 00115 00116 { 00117 sizeof(PERF_COUNTER_DEFINITION), 00118 SETWINDOWPOS, 00119 NULL, 00120 SETWINDOWPOS, 00121 NULL, 00122 0, 00123 PERF_DETAIL_NOVICE, 00124 PERF_COUNTER_RAWCOUNT, 00125 sizeof(DWORD), 00126 NUM_SETWINDOWPOS_OFFSET 00127 }, 00128 00129 { 00130 sizeof(PERF_COUNTER_DEFINITION), 00131 HOOKS, 00132 NULL, 00133 HOOKS, 00134 NULL, 00135 0, 00136 PERF_DETAIL_NOVICE, 00137 PERF_COUNTER_RAWCOUNT, 00138 sizeof(DWORD), 00139 NUM_HOOKS_OFFSET 00140 }, 00141 00142 { 00143 sizeof(PERF_COUNTER_DEFINITION), 00144 CLIPDATAS, 00145 NULL, 00146 CLIPDATAS, 00147 NULL, 00148 0, 00149 PERF_DETAIL_NOVICE, 00150 PERF_COUNTER_RAWCOUNT, 00151 sizeof(DWORD), 00152 NUM_CLIPDATAS_OFFSET 00153 }, 00154 00155 { 00156 sizeof(PERF_COUNTER_DEFINITION), 00157 CALLPROCS, 00158 NULL, 00159 CALLPROCS, 00160 NULL, 00161 0, 00162 PERF_DETAIL_NOVICE, 00163 PERF_COUNTER_RAWCOUNT, 00164 sizeof(DWORD), 00165 NUM_CALLPROCS_OFFSET 00166 }, 00167 00168 { 00169 sizeof(PERF_COUNTER_DEFINITION), 00170 ACCELTABLES, 00171 NULL, 00172 ACCELTABLES, 00173 NULL, 00174 0, 00175 PERF_DETAIL_NOVICE, 00176 PERF_COUNTER_RAWCOUNT, 00177 sizeof(DWORD), 00178 NUM_ACCELTABLES_OFFSET 00179 }, 00180 00181 { 00182 sizeof(PERF_COUNTER_DEFINITION), 00183 DDEACCESS, 00184 NULL, 00185 DDEACCESS, 00186 NULL, 00187 0, 00188 PERF_DETAIL_NOVICE, 00189 PERF_COUNTER_RAWCOUNT, 00190 sizeof(DWORD), 00191 NUM_DDEACCESS_OFFSET 00192 }, 00193 00194 { 00195 sizeof(PERF_COUNTER_DEFINITION), 00196 DDECONVS, 00197 NULL, 00198 DDECONVS, 00199 NULL, 00200 0, 00201 PERF_DETAIL_NOVICE, 00202 PERF_COUNTER_RAWCOUNT, 00203 sizeof(DWORD), 00204 NUM_DDECONVS_OFFSET 00205 }, 00206 00207 { 00208 sizeof(PERF_COUNTER_DEFINITION), 00209 DDEXACTS, 00210 NULL, 00211 DDEXACTS, 00212 NULL, 00213 0, 00214 PERF_DETAIL_NOVICE, 00215 PERF_COUNTER_RAWCOUNT, 00216 sizeof(DWORD), 00217 NUM_DDEXACTS_OFFSET 00218 }, 00219 00220 { 00221 sizeof(PERF_COUNTER_DEFINITION), 00222 MONITORS, 00223 NULL, 00224 MONITORS, 00225 NULL, 00226 0, 00227 PERF_DETAIL_NOVICE, 00228 PERF_COUNTER_RAWCOUNT, 00229 sizeof(DWORD), 00230 NUM_MONITORS_OFFSET 00231 }, 00232 00233 { 00234 sizeof(PERF_COUNTER_DEFINITION), 00235 KBDLAYOUTS, 00236 NULL, 00237 KBDLAYOUTS, 00238 NULL, 00239 0, 00240 PERF_DETAIL_NOVICE, 00241 PERF_COUNTER_RAWCOUNT, 00242 sizeof(DWORD), 00243 NUM_KBDLAYOUTS_OFFSET 00244 }, 00245 00246 { 00247 sizeof(PERF_COUNTER_DEFINITION), 00248 KBDFILES, 00249 NULL, 00250 KBDFILES, 00251 NULL, 00252 0, 00253 PERF_DETAIL_NOVICE, 00254 PERF_COUNTER_RAWCOUNT, 00255 sizeof(DWORD), 00256 NUM_KBDFILES_OFFSET 00257 }, 00258 00259 { 00260 sizeof(PERF_COUNTER_DEFINITION), 00261 WINEVENTHOOKS, 00262 NULL, 00263 WINEVENTHOOKS, 00264 NULL, 00265 0, 00266 PERF_DETAIL_NOVICE, 00267 PERF_COUNTER_RAWCOUNT, 00268 sizeof(DWORD), 00269 NUM_WINEVENTHOOKS_OFFSET 00270 }, 00271 00272 { 00273 sizeof(PERF_COUNTER_DEFINITION), 00274 TIMERS, 00275 NULL, 00276 TIMERS, 00277 NULL, 00278 0, 00279 PERF_DETAIL_NOVICE, 00280 PERF_COUNTER_RAWCOUNT, 00281 sizeof(DWORD), 00282 NUM_TIMERS_OFFSET 00283 }, 00284 00285 { 00286 sizeof(PERF_COUNTER_DEFINITION), 00287 INPUTCONTEXTS, 00288 NULL, 00289 INPUTCONTEXTS, 00290 NULL, 00291 0, 00292 PERF_DETAIL_NOVICE, 00293 PERF_COUNTER_RAWCOUNT, 00294 sizeof(DWORD), 00295 NUM_INPUTCONTEXTS_OFFSET 00296 } 00297 00298 }; 00299 00300 00301 00302 CS_DATA_DEFINITION CSDataDefinition = { 00303 00304 { 00305 sizeof(CS_DATA_DEFINITION) + SIZE_OF_CS_PERFORMANCE_DATA, 00306 sizeof(CS_DATA_DEFINITION), 00307 sizeof(PERF_OBJECT_TYPE), 00308 CSOBJ, 00309 NULL, 00310 CSOBJ, 00311 NULL, 00312 PERF_DETAIL_NOVICE, 00313 NUM_CS_COUNTERS, 00314 0, 00315 PERF_NO_INSTANCES, 00316 0 00317 }, 00318 00319 { 00320 sizeof(PERF_COUNTER_DEFINITION), 00321 EXENTER, 00322 NULL, 00323 EXENTER, 00324 NULL, 00325 0, 00326 PERF_DETAIL_NOVICE, 00327 PERF_COUNTER_VALUE | PERF_SIZE_DWORD, 00328 sizeof(DWORD), 00329 CS_EXENTER_OFFSET 00330 }, 00331 00332 { 00333 sizeof(PERF_COUNTER_DEFINITION), 00334 SHENTER, 00335 NULL, 00336 SHENTER, 00337 NULL, 00338 0, 00339 PERF_DETAIL_NOVICE, 00340 PERF_COUNTER_VALUE | PERF_SIZE_DWORD, 00341 sizeof(DWORD), 00342 CS_SHENTER_OFFSET 00343 }, 00344 00345 { 00346 sizeof(PERF_COUNTER_DEFINITION), 00347 EXTIME, 00348 NULL, 00349 EXTIME, 00350 NULL, 00351 0, 00352 PERF_DETAIL_NOVICE, 00353 PERF_COUNTER_RAWCOUNT, 00354 sizeof(DWORD), 00355 CS_EXTIME_OFFSET 00356 } 00357 }; 00358

Generated on Sat May 15 19:42:13 2004 for test by doxygen 1.3.7