.NET Event Tracing Class Library  

EventTraceKernelSession Class

This class allows kernel event tracing sessions to be created, controlled, queried and terminated. An event tracing session is associated only with a single event tracing provider.

For a list of all members of this type, see EventTraceKernelSession Members.

System.Object
    WmiSolutions.EventTracing.Controller.EventTraceSession
       WmiSolutions.EventTracing.Controller.EventTraceKernelSession

[Visual Basic]
Public Class EventTraceKernelSession Inherits EventTraceSession
[C#]
public class EventTraceKernelSession : EventTraceSession
[C++]
public __gc class EventTraceKernelSession : public EventTraceSession

Example

[C#]
    using System;
    using WmiSolutions.EventTracing;
    using WmiSolutions.EventTracing.Controller;

    EventTraceKernelSession session = new EventTraceKernelSession(
        @"C:\Folders\MyCLRSession.etl", 
        EventTraceLoggingModes.FileModeSequential);

    // Requesting TCP/IP and registry events from the NT Kernel Logger
    session.TraceOptions = KernelTraceOptions.NetworkTcpIP | 
        KernelTraceOptions.Registry;
        
    session.Start();
    ... ..
    ..
    session.Stop();
    
[Visual Basic]
    Imports System
    Imports System
    Imports WmiSolutions.EventTracing
    Imports WmiSolutions.EventTracing.Controller
 
    EventTraceKernelSession session = New EventTraceKernelSession(
        "C:\Folders\MyCLRSession.etl", 
        EventTraceLoggingModes.FileModeSequential)
 
    ' Requesting TCP/IP and registry events from the NT Kernel Logger
    session.TraceOptions = KernelTraceOptions.NetworkTcpIP | 
        KernelTraceOptions.Registry
        
    session.Start()
    ... ..
    ..
    session.Stop()
    

Requirements

Namespace: WmiSolutions.EventTracing.Controller

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: WmiSolutions.EventTracing.Controller (in WmiSolutions.EventTracing.dll)

 

See Also

EventTraceSessionCollection Members | EventTraceSession Members | EventTraceRegisteredProvider Members | EventTraceProviderCollection Members | EventTraceProvider Members | EventTraceKernelSession Members

Contact Me   |  Developing WMI Solutions    |   Gwyn Cole's Developer Blog    |   Legal
 © 2003 Content by Gwyn Cole. All rights reserved.