PopEsPowerSettingPolicyCallback
INT64 __stdcall PopEsPowerSettingPolicyCallback(GUID *SettingGuid, UINT64 *NewValue, UINT64 ValueLength, PVOID Context){
unsigned int v4;
char v6;
v4 = 0;
if( NewValue && (_DWORD)ValueLength == 4 )
{
v6 = 0;
PopAcquireRwLockExclusive(&PopEsLock);
if( *(_DWORD *)NewValue == 1 )
{
if( !byte_140C23D54 )
{
v6 = 1;
byte_140C23D54 = 1;
}
}
else if( !*(_DWORD *)NewValue && byte_140C23D54 )
{
v6 = 1;
byte_140C23D54 = 0;
}
PopReleaseRwLock((UINT64)&PopEsLock);
if( v6 )
PopEsQueueStateEvaluation(0);
}
else
{
return(unsigned int)-1073741811;
}
return v4;
}Referenced by:
No references.