NtSetTimerResolution - NtDoc

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

NTSYSCALLAPI
NTSTATUS
NTAPI
NtSetTimerResolution(
    _In_ ULONG DesiredTime,
    _In_ BOOLEAN SetResolution,
    _Out_ PULONG ActualTime
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetTimerResolution(
    _In_ ULONG DesiredTime,
    _In_ BOOLEAN SetResolution,
    _Out_ PULONG ActualTime
    );

#endif

View code on GitHub

Function NtSetTimerResolution sets resolution of system Timer in calling process context.

DesiredResolution

Resolution to set. To receive minimum and maximum resolution values, call NtQueryTimerResolution.

SetResolution

If set, system Timer's resolution is set to DesiredResolution value. If no, parameter DesiredResolution is ignored.

CurrentResolution

Pointer to ULONG value receiving current timer's resolution, in 100-ns units.

Documented by

See also