25#define WIN32_NO_STATUS
92static char title[] =
"P PID PPID KTime UTime NAME\n";
93static char title1[] =
"t TID KTime UTime State WaitResson\n";
94static char title2[] =
"w PID Hwnd WndStile TID WndName\n";
119 {3,
"PoolAllocation "},
120 {4,
"DelayExecution "},
126 {10,
"WrPoolAllocation "},
127 {11,
"WrDelayExecution "},
129 {13,
"WrUserRequest "},
132 {16,
"WrLpcReceive "},
134 {18,
"WrVirtualMemory "},
136 {20,
"WrRendezvous "},
138 {22,
"WrGuardedMutex "},
146 {30,
"WrQuantumEnd "},
147 {31,
"WrDispatchInt "},
149 {33,
"WrYieldExecution "},
150 {34,
"MaximumWaitReason"},
210 CurrentProcess = SystemProcesses;
213 int hour, hour1, thour, thour1;
214 unsigned char minute, minute1, tmin, tmin1;
215 unsigned char seconds, seconds1, tsec, tsec1;
221 hour = (ptime.
QuadPart / (10000000LL * 3600LL));
222 minute = (ptime.
QuadPart / (10000000LL * 60LL)) % 60LL;
223 seconds = (ptime.
QuadPart / 10000000LL) % 60LL;
226 hour1 = (ptime.
QuadPart / (10000000LL * 3600LL));
227 minute1 = (ptime.
QuadPart / (10000000LL * 60LL)) % 60LL;
228 seconds1 = (ptime.
QuadPart / 10000000LL) % 60LL;
232 wsprintf(
buf,
"P%8d %8d %3d:%02d:%02d %3d:%02d:%02d ProcName: %s\n",
234 hour, minute, seconds, hour1, minute1, seconds1,
244 char szWindowName[30] = {
" "};
247 thour = (ptime.
QuadPart / (10000000LL * 3600LL));
248 tmin = (ptime.
QuadPart / (10000000LL * 60LL)) % 60LL;
249 tsec = (ptime.
QuadPart / 10000000LL) % 60LL;
252 thour1 = (ptime.
QuadPart / (10000000LL * 3600LL));
253 tmin1 = (ptime.
QuadPart / (10000000LL * 60LL)) % 60LL;
254 tsec1 = (ptime.
QuadPart / 10000000LL) % 60LL;
265 "t% %8d %3d:%02d:%02d %3d:%02d:%02d %s %s\n",
267 thour, tmin, tsec, thour1, tmin1, tsec1,
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
#define NT_SUCCESS(StatCode)
#define HeapFree(x, y, z)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
@ SystemProcessInformation
GLdouble GLdouble GLdouble r
GLenum GLuint GLenum GLsizei const GLchar * buf
NTSYSAPI NTSTATUS NTAPI RtlUnicodeStringToAnsiString(PANSI_STRING DestinationString, PUNICODE_STRING SourceString, BOOLEAN AllocateDestinationString)
NTSYSAPI VOID NTAPI RtlFreeAnsiString(PANSI_STRING AnsiString)
struct waitres waitreason[35+1]
struct _SYSTEM_THREADS SYSTEM_THREADS
struct status thread_stat[8+1]
struct _SYSTEM_PROCESSES * PSYSTEM_PROCESSES
static BOOL CALLBACK EnumThreadProc(HWND hwnd, LPARAM lp)
struct _SYSTEM_THREADS * PSYSTEM_THREADS
struct _SYSTEM_PROCESSES SYSTEM_PROCESSES
NTSYSAPI NTSTATUS NTAPI NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
LARGE_INTEGER OtherOperationCount
LARGE_INTEGER ReadTransferCount
ULONG QuotaPeakNonPagedPoolUsage
ULONG QuotaNonPagedPoolUsage
LARGE_INTEGER ReadOperationCount
SYSTEM_THREADS Threads[1]
ULONG QuotaPeakPagedPoolUsage
LARGE_INTEGER WriteOperationCount
LARGE_INTEGER WriteTransferCount
LARGE_INTEGER OtherTransferCount
ULONG QuotaPagedPoolUsage
HANDLE InheritedFromUniqueProcessId
#define STATUS_INFO_LENGTH_MISMATCH
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
#define STD_OUTPUT_HANDLE
DWORD WINAPI GetWindowThreadProcessId(HWND hWnd, PDWORD lpdwProcessId)
_In_ ULONG_PTR _In_ ULONG _Out_ ULONG_PTR * pid
BOOL WINAPI EnumThreadWindows(_In_ DWORD, _In_ WNDENUMPROC, _In_ LPARAM)
BOOL(CALLBACK * WNDENUMPROC)(HWND, LPARAM)