18#define SPIN_TIME 1000000
108 ok(0,
"NtQuerySystemTime failed with %lx\n",
Status);
140 ok(0,
"NtQuerySystemTime failed with %lx\n",
Status);
174 "KernelTime values inconsistent. Expected %I64u - %I64u < %I64u\n",
177 "UserTime values inconsistent. Expected %I64u - %I64u < %I64u\n",
241 sizeof(BasicInfo) - 1,
257 sizeof(BasicInfo) + 1,
266 sizeof(BasicInfo) - 1,
360 sizeof(QuotaLimits) - 1,
376 sizeof(QuotaLimits) + 1,
385 sizeof(QuotaLimits) - 1,
439 sizeof(QuotaLimitsEx),
447 sizeof(QuotaLimitsEx),
455 sizeof(QuotaLimitsEx) - 1,
463 sizeof(QuotaLimitsEx),
471 sizeof(QuotaLimitsEx) + 1,
480 sizeof(QuotaLimitsEx) - 1,
490 sizeof(QuotaLimitsEx),
502 trace(
"[1] QuotaLimitsEx.Flags = %lx\n", QuotaLimitsEx.
Flags);
511 sizeof(QuotaLimitsEx),
524 trace(
"[2] QuotaLimitsEx.Flags = %lx\n", QuotaLimitsEx.
Flags);
537 if (ProcPriority ==
NULL)
539 skip(
"Failed to allocate memory for PROCESS_PRIORITY_CLASS!\n");
592 "Expected a valid number from priority class range but got %d\n", ProcPriority->
PriorityClass);
658 ok(VdmPower == 0 || VdmPower == 1,
"The VDM power value must be within the boundary between 0 and 1, not anything else! Got %lu\n", VdmPower);
668 ok(VdmPower == 0 || VdmPower == 1,
"The VDM power value must be within the boundary between 0 and 1, not anything else! Got %lu\n", VdmPower);
672 trace(
"VdmPower = %lu\n", VdmPower);
_In_ PVOID _In_ ULONG _Out_ PVOID _In_ ULONG _Inout_ PULONG ReturnLength
#define ok_hex(expression, result)
#define ok_dec(expression, result)
#define STATUS_INVALID_HANDLE
#define NT_SUCCESS(StatCode)
#define PROCESS_PRIORITY_CLASS_INVALID
#define PROCESS_PRIORITY_CLASS_ABOVE_NORMAL
@ ProcessBasicInformation
#define RtlFillMemory(Dest, Length, Fill)
VOID QuerySetProcessValidator(_In_ ALIGNMENT_PROBE_MODE ValidationMode, _In_ ULONG InfoClassIndex, _In_ PVOID InfoPointer, _In_ ULONG InfoLength, _In_ NTSTATUS ExpectedStatus)
#define NtCurrentProcess()
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSTATUS NTAPI NtQuerySystemTime(OUT PLARGE_INTEGER SystemTime)
NTSTATUS NTAPI NtQueryInformationProcess(_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _Out_ PVOID ProcessInformation, _In_ ULONG ProcessInformationLength, _Out_opt_ PULONG ReturnLength)
#define STATUS_ACCESS_VIOLATION
#define STATUS_DATATYPE_MISALIGNMENT
static const INFORMATION_CLASS_INFO PsProcessInfoClass[]
SIZE_T MaximumWorkingSetSize
RATE_QUOTA_LIMIT CpuRateLimit
SIZE_T MinimumWorkingSetSize
INT64 MaximumWorkingSetSize
INT64 MinimumWorkingSetSize
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
#define STATUS_INFO_LENGTH_MISMATCH