#include <nt.h>#include <ntrtl.h>#include <nturtl.h>#include <windows.h>#include <winuser.h>#include <winperf.h>#include <ntprfctr.h>#include <string.h>#include <wcstr.h>#include "userctrs.h"#include "perfmsg.h"#include "perfutil.h"#include "userdata.h"Go to the source code of this file.
Classes | |
| struct | _tagCSStatistics |
| struct | _tagInstance |
Defines | |
| #define | ALL_PROCESSES_STRING L"_All Processes" |
| #define | QUC_PID_TOTAL 0xffffffff |
| #define | QUERYUSER_TYPE_USER 0x1 |
| #define | QUERYUSER_TYPE_CS 0x2 |
Typedefs | |
| typedef _tagCSStatistics | CSSTATISTICS |
| typedef _tagInstance | ProcessInstance |
Functions | |
| BOOL (WINAPI *QueryUserCounters)(DWORD | |
| DWORD | GlobalCollect (IN LPWSTR lpValueName, IN OUT LPVOID *lppData, IN OUT LPDWORD lpcbTotalBytes, IN OUT LPDWORD lpNumObjectTypes, IN DWORD dwQueryType) |
| BOOL | FillInstances (VOID) |
| BOOL __stdcall | DllInit (IN HANDLE DLLHandle, IN DWORD Reason, IN LPVOID ReservedAndUnused) |
| DWORD APIENTRY | OpenUserPerformanceData (LPWSTR lpDeviceNames) |
| DWORD APIENTRY | CollectUserPerformanceData (IN LPWSTR lpValueName, IN OUT LPVOID *lppData, IN OUT LPDWORD lpcbTotalBytes, IN OUT LPDWORD lpNumObjectTypes) |
| DWORD APIENTRY | CloseUserPerformanceData () |
| VOID | CleanUpInstances (VOID) |
Variables | |
| LPVOID | |
| DWORD | |
| USER_DATA_DEFINITION | UserDataDefinition |
| CS_DATA_DEFINITION | CSDataDefinition |
| ProcessInstance * | gaInstances |
| int | gNumInstances |
| PDWORD | gpPid |
| PDWORD | gpdwResult |
| DWORD | dwOpenCount |
| HANDLE | ghHeap |
| BOOL | gbInitOK |
| PM_OPEN_PROC | OpenUserPerformanceData |
| PM_COLLECT_PROC | CollectUserPerformanceData |
| PM_CLOSE_PROC | CloseUserPerformanceData |
|
|
Definition at line 30 of file perfuser.c. Referenced by FillInstances(). |
|
|
Definition at line 35 of file perfuser.c. Referenced by _QueryUserHandles(), and FillInstances(). |
|
|
Definition at line 37 of file perfuser.c. Referenced by GlobalCollect(). |
|
|
Definition at line 36 of file perfuser.c. Referenced by GlobalCollect(). |
|
|
|
|
|
|
|
|
Referenced by _InitializeImmEntryTable(), DllInit(), ECDoIMEMenuCommand(), ImeCopyDataHandler(), CProfileInformationPage::OnInit(), OpenKeyboardLayoutFile(), and WINNLSTranslateMessageK(). |
|
|
Definition at line 623 of file perfuser.c. References FREE, gaInstances, gNumInstances, NULL, and VOID(). Referenced by FillInstances().
|
|
|
Definition at line 382 of file perfuser.c. References dwOpenCount, FREE, gaInstances, gNumInstances, gpdwResult, gpPid, and MonCloseEventLog().
|
|
||||||||||||||||||||
|
Definition at line 270 of file perfuser.c. References APIENTRY, DWORD, gbInitOK, GetQueryType(), GlobalCollect(), IsNumberInUnicodeList(), QUERY_FOREIGN, QUERY_ITEMS, and QUERY_NOCOUNTERS.
|
|
||||||||||||||||
|
Definition at line 97 of file perfuser.c. References BOOL(), DWORD, FALSE, LPVOID, MAX_PATH, and TRUE.
|
|
|
Definition at line 642 of file perfuser.c. References ALL_PROCESSES_STRING, ALLOC, BOOL, BYTE, CleanUpInstances(), DWORD, FALSE, FREE, gaInstances, gbInitOK, gNumInstances, gpdwResult, gpPid, _tagInstance::id, L, LOG_USER, NT_SUCCESS, NtQuerySystemInformation(), NULL, NUM_USER_COUNTERS, _tagInstance::pName, QUC_PID_TOTAL, REPORT_ERROR_DATA, _tagInstance::sizeName, and TRUE. Referenced by GlobalCollect().
|
|
||||||||||||||||||||||||
|
Definition at line 417 of file perfuser.c. References _tagCSStatistics::cExclusive, CSDataDefinition, _tagCSStatistics::cShared, DWORD, FillInstances(), gaInstances, gNumInstances, gpdwResult, gpPid, _tagCSStatistics::i64TimeExclusive, _tagInstance::id, LOG_USER, MAX_PATH, NT_SUCCESS, NULL, NUM_CS_COUNTERS, NUM_USER_COUNTERS, PBYTE, QUERY_CS, QUERY_NOCOUNTERS, QUERY_USER, QUERYUSER_TYPE_CS, QUERYUSER_TYPE_USER, REPORT_ERROR, SIZE_OF_CS_PERFORMANCE_DATA, SIZE_OF_USER_PERFORMANCE_DATA, _tagInstance::sizeName, USER_DATA_DEFINITION, UserDataDefinition, and _USER_DATA_DEFINITION::UserObjectType. Referenced by CollectUserPerformanceData().
|
|
|
Definition at line 136 of file perfuser.c. References APIENTRY, CSDataDefinition, _CS_DATA_DEFINITION::CSExEnter, _CS_DATA_DEFINITION::CSExTime, _CS_DATA_DEFINITION::CSObjectType, _CS_DATA_DEFINITION::CSShEnter, dwOpenCount, DWORD, gbInitOK, hEventLog, L, LOG_USER, MonOpenEventLog(), NUM_USER_COUNTERS, _USER_DATA_DEFINITION::NumTotals, REPORT_ERROR_DATA, TRUE, type, UserDataDefinition, and _USER_DATA_DEFINITION::UserObjectType.
|
|
|
Definition at line 93 of file perfuser.c. |
|
|
Definition at line 92 of file perfuser.c. |
|
|
Definition at line 58 of file perfuser.c. Referenced by GlobalCollect(), IsNumberInUnicodeList(), and OpenUserPerformanceData(). |
|
|
Definition at line 74 of file perfuser.c. Referenced by CloseUserPerformanceData(), and OpenUserPerformanceData(). |
|
|
|
Definition at line 70 of file perfuser.c. Referenced by CleanUpInstances(), CloseUserPerformanceData(), FillInstances(), and GlobalCollect(). |
|
|
Definition at line 76 of file perfuser.c. Referenced by CollectUserPerformanceData(), FillInstances(), and OpenUserPerformanceData(). |
|
|
Definition at line 75 of file perfuser.c. |
|
|
Definition at line 71 of file perfuser.c. Referenced by CleanUpInstances(), CloseUserPerformanceData(), FillInstances(), and GlobalCollect(). |
|
|
Definition at line 73 of file perfuser.c. Referenced by CloseUserPerformanceData(), FillInstances(), and GlobalCollect(). |
|
|
Definition at line 72 of file perfuser.c. Referenced by CloseUserPerformanceData(), FillInstances(), and GlobalCollect(). |
|
|
|
Definition at line 91 of file perfuser.c. |
|
|
Definition at line 57 of file perfuser.c. Referenced by GlobalCollect(), IsNumberInUnicodeList(), and OpenUserPerformanceData(). |
1.3.7