PopDiagTraceSessionDisplayStateChange
VOID __stdcall PopDiagTraceSessionDisplayStateChange(UINT8 MonitorOff, UINT64 SessionId, INT64 Console, UINT64 Reason){
const _EVENT_DESCRIPTOR *v4;
REGHANDLE v5;
_EVENT_DATA_DESCRIPTOR UserData;
int *v7;
int v8;
int v9;
int *v10;
int v11;
int v12;
int v13;
int v14;
int v15;
v15 = Reason;
v14 = Console;
v13 = SessionId;
v4 = (const _EVENT_DESCRIPTOR *)POP_ETW_EVENT_SESSION_DISPLAY_OFF;
if( !MonitorOff )
v4 = &POP_ETW_EVENT_SESSION_DISPLAY_ON;
if( PopDiagHandleRegistered )
{
v5 = PopDiagHandle;
if( EtwEventEnabled(PopDiagHandle, v4) )
{
UserData.Reserved = 0;
v9 = 0;
v12 = 0;
UserData.Ptr = (unsigned __int64)&v13;
UserData.Size = 4;
v7 = &v14;
v8 = 4;
v10 = &v15;
v11 = 4;
EtwWriteEx(v5, v4, 0i64, 0, 0, 0, 3u, &UserData);
}
}
}Referenced by:
NtPowerInformation
PopPowerInformationInternal