#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
NTSYSCALLAPI
NTSTATUS
NTAPI
NtSetTimerResolution(
_In_ ULONG DesiredTime,
_In_ BOOLEAN SetResolution,
_Out_ PULONG ActualTime
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetTimerResolution(
_In_ ULONG DesiredTime,
_In_ BOOLEAN SetResolution,
_Out_ PULONG ActualTime
);
View code on GitHub
Function NtSetTimerResolution
sets resolution of system Timer in calling process context.
Resolution to set. To receive minimum and maximum resolution values, call NtQueryTimerResolution
.
If set, system Timer's resolution is set to DesiredResolution
value. If no, parameter DesiredResolution
is ignored.
Pointer to ULONG
value receiving current timer's resolution, in 100-ns units.