Пример #1
0
 public static uint ExmonTaskTraceEventInstance(byte[] buffer, ref DiagnosticsNativeMethods.EventInstanceInfo instanceInfo, ref DiagnosticsNativeMethods.EventInstanceInfo parentInstanceInfo)
 {
     DiagnosticsNativeMethods.CriticalTraceHandle session = ETWTrace.ExmonTaskSession.Session;
     if (session != null)
     {
         return(DiagnosticsNativeMethods.TraceEventInstance(session.DangerousGetHandle(), buffer, ref instanceInfo, ref parentInstanceInfo));
     }
     return(87U);
 }
 public static extern uint TraceEventInstance([In] long sessionHandle, [MarshalAs(UnmanagedType.LPArray)][In] byte[] eventTrace, [In] ref DiagnosticsNativeMethods.EventInstanceInfo eventInstanceInfo, [In] ref DiagnosticsNativeMethods.EventInstanceInfo parentEventInstanceInfo);
Пример #3
0
 private static DiagnosticsNativeMethods.EventInstanceInfo CreateInstanceId(IntPtr eventHandle)
 {
     DiagnosticsNativeMethods.EventInstanceInfo result = default(DiagnosticsNativeMethods.EventInstanceInfo);
     DiagnosticsNativeMethods.CreateTraceInstanceId(eventHandle, ref result);
     return(result);
 }
 public static extern uint CreateTraceInstanceId([In] IntPtr registrationHandle, [In][Out] ref DiagnosticsNativeMethods.EventInstanceInfo eventInstanceInfo);