NtSetIntervalProfile - 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
NtSetIntervalProfile(
    _In_ ULONG Interval,
    _In_ KPROFILE_SOURCE Source
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetIntervalProfile(
    _In_ ULONG Interval,
    _In_ KPROFILE_SOURCE Source
    );

#endif

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).

Interval

New interval, in ms.

Source

Performance counter's identifier, defined in KPROFILE_SOURCE enumeration type.

Documented by

See also