WdipSemLogInflightLimitExceededInformation
NTSTATUS __stdcall WdipSemLogInflightLimitExceededInformation(
const _GUID *ProviderId,
UINT16 EventId,
const _GUID *ScenarioInstanceId){
unsigned int v6;
NTSTATUS updated;
__int64 **v8;
_QWORD InflightScenarioTable[126];
__int64 v11;
v6 = 0;
v11 = 0i64;
updated = 0;
memset(InflightScenarioTable, 0i64, sizeof(InflightScenarioTable));
if( ProviderId && ScenarioInstanceId )
{
if( EtwEventEnabled(*(&ExBootDevicesRemovedEvent + 560), &WDI_SEM_EVENT_SCENARIO_INFLIGHT_MAX)
|| WdipSemSqmEnabled() )
{
v8 = (__int64 **)*(&ExBootDevicesRemovedEvent + 564);
if( (_UNKNOWN *)((char *)&ExBootDevicesRemovedEvent + 4512) == (_UNKNOWN *)*(&ExBootDevicesRemovedEvent + 564) )
{
LABEL_14:
updated = -1073741823;
}
else
{
while( 1 )
{
updated = WdipSemUpdateInflightScenarioTable(
v8[4],
*((_WORD *)v8[4] + 8),
InflightScenarioTable,
(__int64)&v11);
if( updated < 0 )
break;
v8 = (__int64 **)*v8;
if( (__int64 **)((char *)&ExBootDevicesRemovedEvent + 4512) == v8 )
{
if( !v11 )
goto LABEL_14;
if( EtwEventEnabled(*(&ExBootDevicesRemovedEvent + 560), &WDI_SEM_EVENT_SCENARIO_INFLIGHT_MAX) )
WdipSemWriteInflightLimitExceededEvent(
ProviderId,
EventId,
ScenarioInstanceId,
(_WDIP_SEM_INFLIGHT_SCENARIO_TABLE *)InflightScenarioTable);
if( WdipSemSqmEnabled() )
WdipSemUpdateFrequentScenarioTable(v11);
break;
}
}
}
}
}
else
{
updated = -1073741811;
}
if( LODWORD(InflightScenarioTable[125]) )
{
do
WdipSemFastFree(5i64, (_SLIST_ENTRY *)InflightScenarioTable[v6++]);
while( v6 < LODWORD(InflightScenarioTable[125]) );
}
return updated;
}Referenced by:
WdipSemReserveInstanceTableEntry