RtlReadThreadProfilingData - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H
//
// Thread profiling
//
#if (PHNT_VERSION >= PHNT_WINDOWS_7)

// rev
/**
 * Reads the specified profiling data associated with the thread.
 *
 * @param PerformanceDataHandle The handle that the RtlEnableThreadProfiling function returned.
 * @param Flags One or more flags set when you called the RtlEnableThreadProfiling function that specify the counter data to read.
 * @param PerformanceData A PERFORMANCE_DATA structure that contains the thread profiling and hardware counter data.
 * @return NTSTATUS Successful or errant status.
 * @sa https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-readthreadprofilingdata
 */
NTSYSAPI
NTSTATUS
NTAPI
RtlReadThreadProfilingData(
    _In_ HANDLE PerformanceDataHandle,
    _In_ ULONG Flags,
    _Out_ PPERFORMANCE_DATA PerformanceData
    );

#endif
#endif

View code on GitHub

No description available.