GetThreadInformation() fails
Solution 1:
the documetation of GetThreadInformation
is wrong.
in part ThreadInformationClass
: really supported values is: ThreadMemoryPriority
,
ThreadAbsoluteCpuPriority
and ThreadDynamicCodePolicy
the ThreadPowerThrottling
is accepted only by SetThreadInformation
.
so if pass ThreadPowerThrottling
to GetThreadInformation
we always got ERROR_INVALID_PARAMETER