EventDescCreate function

Sets the values of an event descriptor.

Syntax

EVNTPROV_PFORCEINLINE VOID EventDescCreate(
  PEVENT_DESCRIPTOR EventDescriptor,
  USHORT            Id,
  UCHAR             Version,
  UCHAR             Channel,
  UCHAR             Level,
  USHORT            Task,
  UCHAR             Opcode,
  ULONGLONG         Keyword
);

Parameters

EventDescriptor

Event descriptor whose member values are set to those of the remaining parameters. For details, see EVENT_DESCRIPTOR.

Id

Event identifier. The value is used to set the Id member of EVENT_DESCRIPTOR.

Version

Version of the event. The value is used to set the Version member of EVENT_DESCRIPTOR.

Channel

The category of events to which this event belongs. The value is used to set the Channel member of EVENT_DESCRIPTOR.

Level

Specifies the severity of the event. The value is used to set the Level member of EVENT_DESCRIPTOR.

Task

Identifies a logical component of the application whose events you want to enable. The value is used to set the Task member of EVENT_DESCRIPTOR.

Opcode

Operation being performed at the time the event was written. The value is used to set the Opcode member of EVENT_DESCRIPTOR.

Keyword

Bitmask that further defines the category of events to which the event belongs. The value is used to set the Keyword member of EVENT_DESCRIPTOR.

Return Value

This function does not return a value.

Remarks

This is a convenience macro for setting the members of the EVENT_DESCRIPTOR structure.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header evntprov.h

See Also

EventDescZero