Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reads the specified profiling data associated with the thread.
Syntax
DWORD ReadThreadProfilingData(
[in] HANDLE PerformanceDataHandle,
[in] DWORD Flags,
[out] PPERFORMANCE_DATA PerformanceData
);
Parameters
[in] PerformanceDataHandle
The handle that the EnableThreadProfiling function returned.
[in] Flags
One or more of the following flags that specify the counter data to read. The flags must have been set when you called the EnableThreadProfiling function.
Value | Meaning |
---|---|
|
Get the thread profiling data. |
|
Get the hardware performance counters data. |
[out] PerformanceData
A PERFORMANCE_DATA structure that contains the thread profiling and hardware counter data.
Return value
Returns ERROR_SUCCESS if the call is successful; otherwise, a system error code (see Winerror.h).
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | winbase.h (include Windows.h) |
Library | Kernel32.lib |
DLL | Kernel32.dll |