EtwRegisterCounters

VOID __stdcall EtwRegisterCounters(){
  __int64 v0; 
  const wchar_t *v1; 
  _PCW_REGISTRATION_INFORMATION Info; 

  *(&Info.Version + 1) = 0;
  *(&Info.CounterCount + 1) = 0;
  v1 = L"Event Tracing for Windows";
  v0 = 3407922i64;
  Info.Counters = (_PCW_COUNTER_DESCRIPTOR *)`PcwpRegisterEventTracingCounterSet'::`2'::Descriptors;
  Info.Version = 256;
  Info.Name = (const _UNICODE_STRING *)&v0;
  Info.CounterCount = 6;
  Info.Callback = (int(__fastcall *)(_PCW_CALLBACK_TYPE, _PCW_CALLBACK_INFORMATION *, void *))EtwpEventTracingCounterSetCallback;
  Info.CallbackContext = (void *)1;
  PcwRegister((PPCW_REGISTRATION *)&WheapErrorSourceTable + 107, &Info);
  *(&Info.Version + 1) = 0;
  *(&Info.CounterCount + 1) = 0;
  v1 = L"Event Tracing for Windows Session";
  v0 = 4456514i64;
  Info.Counters = (_PCW_COUNTER_DESCRIPTOR *)`PcwpRegisterEventTracingSessionCounterSet'::`2'::Descriptors;
  Info.Name = (const _UNICODE_STRING *)&v0;
  Info.Version = 256;
  Info.CounterCount = 5;
  Info.Callback = (int(__fastcall *)(_PCW_CALLBACK_TYPE, _PCW_CALLBACK_INFORMATION *, void *))EtwpEventTracingCounterSetCallback;
  Info.CallbackContext = (void *)2;
  PcwRegister((PPCW_REGISTRATION *)&WheapErrorSourceTable + 106, &Info);
}

Referenced by:

ExpPcwHostCallback