Click to Rate and Give Feedback
MSDN
MSDN Library
Diagnostics
Windows Events
Event Tracing
EventTrace
MSNT_SystemTrace
Process
Process Class

Syntax

[Guid("{3d6fa8d0-fe05-11d0-9dda-00c04fd7ba7c}"), EventVersion(3)]class Process : MSNT_SystemTrace
{
};

Methods

The Process class inherits from MSNT_SystemTrace but does not define additional methods or properties.

Remarks

To enable process events in an NT Kernel logging session, specify the EVENT_TRACE_FLAG_PROCESS flag in the EnableFlags member of an EVENT_TRACE_PROPERTIES structure when calling the StartTrace function. You can also specify the following flag:

  • EVENT_TRACE_FLAG_PROCESS_COUNTERS

Event trace consumers can implement special processing for process events by calling the SetTraceCallback function and specifying ProcessGuid as the pGuid parameter. Use the following event types to identify the actual process event when consuming events.

Event typeDescription
EVENT_TRACE_TYPE_END

(Event type value is 2)

End process event. The Process_TypeGroup1 MOF class defines the event data for this event.
EVENT_TRACE_TYPE_START

(Event type value is 1)

Start process event. The Process_TypeGroup1 MOF class defines the event data for this event.
Event type value, 3Start data collection process event. Enumerates processes that are currently running at the time the kernel session starts. The Process_TypeGroup1 MOF class defines the event data for this event.
Event type value, 4End data collection process event. Enumerates processes that are currently running at the time the kernel session ends. The Process_TypeGroup1 MOF class defines the event data for this event.

 

Process and thread start events may be logged in the context of the parent process or thread. As a result, the ProcessId and ThreadId members of EVENT_TRACE_HEADER may not correspond to the process and thread being created. This is why these events contain the process and thread identifiers in the event data (in addition to those in the event header).

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008

See Also

Process_TypeGroup1
Process_V0
Process_V1
Process_V2

Send comments about this topic to Microsoft

Build date: 10/15/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker