PopBatteryEtwCallback
VOID __stdcall PopBatteryEtwCallback(
_GUID *SourceId,
UINT64 IsEnabled,
UINT8 Level,
UINT64 MatchAnyMask,
UINT64 MatchAllMask,
_EVENT_FILTER_DESCRIPTOR *FilterData,
PVOID CallbackContext){
_ETHREAD *CurrentThread;
if( (_DWORD)IsEnabled == 2 )
{
CurrentThread = (_ETHREAD *)KeGetCurrentThread();
--*((_WORD *)CurrentThread + 242);
ExAcquirePushLockSharedEx((UINT64)&PopPolicyDeviceLock, 0i64);
PopAcquireRwLockExclusive((_POP_RW_LOCK *)&PopCB);
PopBatteryTraceSystemBatteryStatus(1u);
PopReleaseRwLock((UINT64)&PopCB);
PopReleaseRwLock((UINT64)&PopPolicyDeviceLock);
}
}Referenced by:
No references.