PpmSetExitLatencySamplingPercentage
__int64 __fastcall PpmSetExitLatencySamplingPercentage(int *a1){
unsigned int v2;
char v3;
int v4;
int v6[10];
v2 = 0;
v3 = 0;
PpmAcquireLock((_PPM_LOCK *)((char *)&stru_140C23628 + 4728));
if( PpmExitLatencySamplingPercentageSet )
{
v2 = -1073741823;
}
else
{
v4 = *a1;
if( (unsigned int)*a1 > 0x64 )
v4 = 100;
if( !v4 || !*(&WheapErrorSourceTable + 234) )
v3 = 1;
PpmExitLatencySamplingPercentageSet = 1;
*(&WheapErrorSourceTable + 234) = v4;
if( v3 )
{
_InterlockedOr(v6, 0);
KeFlushProcessWriteBuffers(1u);
}
}
PpmReleaseLock((INT64 *)&stru_140C23628 + 591);
return v2;
}Referenced by:
NtPowerInformation