WdipSemGetLoggerIds
INT64 __fastcall WdipSemGetLoggerIds(){
WCHAR v0;
int v1;
WCHAR v2;
__int32 v3;
INT64 result;
__int32 v5;
struct _UNICODE_STRING DestinationString;
UINT64 TraceHandle;
TraceHandle = 0i64;
DestinationString = 0i64;
RtlInitUnicodeString(&DestinationString, L"DiagLog", v0);
v1 = EtwQueryTraceHandleByLoggerName(&DestinationString, &TraceHandle);
if( v1 < 0 )
v3 = 0;
else
v3 = (unsigned __int16)TraceHandle;
_InterlockedExchange(&WdipDiagLoggerId, v3);
RtlInitUnicodeString(&DestinationString, L"WdiContextLog", v2);
result = EtwQueryTraceHandleByLoggerName(&DestinationString, &TraceHandle);
if( (int)result < 0 )
v5 = 0;
else
v5 = (unsigned __int16)TraceHandle;
_InterlockedExchange(&WdipContextLoggerId, v5);
if( v1 < 0 )
return(unsigned int)v1;
return result;
}Referenced by:
WdipSemCleanStart
WdipSemDisableScenario
WdipSemEnableScenario