177{
186 char buf1[256];
187
191
192
194 do
195 {
200 &ReturnSize);
204
205
207 return 1;
208
209
210 CurrentProcess = SystemProcesses;
212 {
213 int hour, hour1, thour, thour1;
214 unsigned char minute, minute1, tmin, tmin1;
215 unsigned char seconds, seconds1, tsec, tsec1;
216
217 unsigned int ti;
219
221 hour = (ptime.
QuadPart / (10000000LL * 3600LL));
222 minute = (ptime.
QuadPart / (10000000LL * 60LL)) % 60LL;
223 seconds = (ptime.
QuadPart / 10000000LL) % 60LL;
224
226 hour1 = (ptime.
QuadPart / (10000000LL * 3600LL));
227 minute1 = (ptime.
QuadPart / (10000000LL * 60LL)) % 60LL;
228 seconds1 = (ptime.
QuadPart / 10000000LL) % 60LL;
229
231
232 wsprintf(
buf,
"P%8d %8d %3d:%02d:%02d %3d:%02d:%02d ProcName: %s\n",
234 hour, minute, seconds, hour1, minute1, seconds1,
237
239
241 {
244 char szWindowName[30] = {" "};
245
247 thour = (ptime.
QuadPart / (10000000LL * 3600LL));
248 tmin = (ptime.
QuadPart / (10000000LL * 60LL)) % 60LL;
249 tsec = (ptime.
QuadPart / 10000000LL) % 60LL;
250
252 thour1 = (ptime.
QuadPart / (10000000LL * 3600LL));
253 tmin1 = (ptime.
QuadPart / (10000000LL * 60LL)) % 60LL;
254 tsec1 = (ptime.
QuadPart / 10000000LL) % 60LL;
255
258 statt++;
259
262 waitt++;
263
265 "t% %8d %3d:%02d:%02d %3d:%02d:%02d %s %s\n",
267 thour, tmin, tsec, thour1, tmin1, tsec1,
270
274 }
275
278 }
279 return (0);
280}
#define NT_SUCCESS(StatCode)
#define HeapFree(x, y, z)
@ SystemProcessInformation
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 status thread_stat[8+1]
struct _SYSTEM_PROCESSES * PSYSTEM_PROCESSES
static BOOL CALLBACK EnumThreadProc(HWND hwnd, LPARAM lp)
NTSYSAPI NTSTATUS NTAPI NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
SYSTEM_THREADS Threads[1]
HANDLE InheritedFromUniqueProcessId
#define STATUS_INFO_LENGTH_MISMATCH
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
BOOL WINAPI EnumThreadWindows(_In_ DWORD, _In_ WNDENUMPROC, _In_ LPARAM)
BOOL(CALLBACK * WNDENUMPROC)(HWND, LPARAM)