WdipSemSqmEnabled

UINT8 __stdcall WdipSemSqmEnabled(){
  REGHANDLE v0; 
  UINT8 v1; 

  v0 = *(&ExBootDevicesRemovedEvent + 560);
  v1 = 0;
  if( EtwEventEnabled(*(&ExBootDevicesRemovedEvent + 560), &WDI_SEM_EVENT_SQM_INCREMENT_DWORD)
    && EtwEventEnabled(v0, (PCEVENT_DESCRIPTOR)&WDI_SEM_EVENT_SQM_ADD_TO_STREAM) )
  {
    return 1;
  }
  return v1;
}

Referenced by:

WdipSemLogInflightLimitExceededInformation
WdipSemLogTimeoutInformation