#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
NTSYSCALLAPI
NTSTATUS
NTAPI
NtSetIntervalProfile(
_In_ ULONG Interval,
_In_ KPROFILE_SOURCE Source
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetIntervalProfile(
_In_ ULONG Interval,
_In_ KPROFILE_SOURCE Source
);
View code on GitHub
Function NtSetIntervalProfile
sets delay between performance counter's ticks. Setting profile's interval has global effect for all running processes.
User can set interval only for software performance counters. To determine if counter is software or not, call NtQueryIntervalProfile
. If returned interval is zero, queried counter is hardware counter (build in CPU).
New interval, in ms.
Performance counter's identifier, defined in KPROFILE_SOURCE
enumeration type.