#ifndef _NTPSAPI_H
// Process information structures
#if (PHNT_MODE != PHNT_MODE_KERNEL)
typedef struct _KERNEL_USER_TIMES
{
LARGE_INTEGER CreateTime;
LARGE_INTEGER ExitTime;
LARGE_INTEGER KernelTime;
LARGE_INTEGER UserTime;
} KERNEL_USER_TIMES, *PKERNEL_USER_TIMES;
View code on GitHub
This structure describes the timing information for threads.
NtQueryInformationThread
with ThreadTimes
(1)NtQueryInformationProcess
with ProcessTimes
(4)The number of 100-nanosecond intervals since the 1st of January 1600 to the creation of the thread/process.
The number of 100-nanosecond intervals since 1st of January 1600 to the termination of the thread/process.
The number of 100-nanosecond intervals spent by the thread(s) executing in kernel mode.
The number of 100-nanosecond intervals spent by the thread(s) executing in user mode.