NtQueryTimerResolution - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)

/**
 * The NtQueryTimerResolution routine retrieves the range and current value of the system interrupt timer.
 *
 * \param MaximumTime The maximum timer resolution, in 100-nanosecond units.
 * \param MinimumTime The minimum timer resolution, in 100-nanosecond units.
 * \param CurrentTime The current timer resolution, in 100-nanosecond units.
 * \return NTSTATUS Successful or errant status.
 */
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
NtQueryTimerResolution(
    _Out_ PULONG MaximumTime,
    _Out_ PULONG MinimumTime,
    _Out_ PULONG CurrentTime
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwQueryTimerResolution(
    _Out_ PULONG MaximumTime,
    _Out_ PULONG MinimumTime,
    _Out_ PULONG CurrentTime
    );

#endif

View code on GitHub

NtDoc

Retrieves the range of supported system timer resolutions and the current resolution. All values are intervals between timer ticks in 100-nanosecond units, so a smaller value means a finer resolution.

Parameters

Related Win32 API

This functionality is not exposed in Win32 API.

See also

NTinternals.net (undocumented.ntinternals.net)

Function NtQueryTimerResolution returns resolution of system Timer in context of calling process. See also description of NtSetTimerResolution.

MinimumResolution

Means highest possible delay (in 100-ns units) between timer events.

MaximumResolution

Means lowest possible delay (in 100-ns units) between timer events.

CurrentResolution

Current timer resolution, in 100-ns units.

Documented by

See also