13 ULONG CurrentResolution;
14 ULONG MinimumResolution;
15 ULONG MaximumResolution;
16 ULONG CurrentResolution2;
41 ok(MinimumResolution >= MaximumResolution,
"MaximumResolution higher than MinimumResolution!\n");
44 ok_hex(CurrentResolution, CurrentResolution2);
55 printf(
"Current resolution: %lu ; minimum resolution: %lu\n", CurrentResolution, MinimumResolution);
56 ok(CurrentResolution <= MinimumResolution,
"Current resolution: %lu became too high! (minimum resolution: %lu)\n", CurrentResolution, MinimumResolution);
62 printf(
"Current resolution: %lu ; maximum resolution: %lu\n", CurrentResolution, MaximumResolution);
64 ok(
abs((
LONG)MaximumResolution - (
LONG)CurrentResolution) < 200,
"Current resolution: %lu became too low! (maximum resolution: %lu)\n", CurrentResolution, MaximumResolution);
#define ok_hex(expression, result)
NTSTATUS NTAPI NtQueryTimerResolution(OUT PULONG MinimumResolution, OUT PULONG MaximumResolution, OUT PULONG ActualResolution)
NTSTATUS NTAPI NtSetTimerResolution(IN ULONG DesiredResolution, IN BOOLEAN SetResolution, OUT PULONG CurrentResolution)
#define STATUS_TIMER_RESOLUTION_NOT_SET