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