Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventDescCreate macro

Sets the values of an event descriptor.

Syntax


void EventDescCreate(
  [out] PEVENT_DESCRIPTOR EventDescriptor,
  [in]  USHORT            Id,
  [in]  UCHAR             Version,
  [in]  UCHAR             Channel,
  [in]  UCHAR             Level,
  [in]  USHORT            Task,
  [in]  UCHAR             Opcode,
  [in]  ULONGLONG         Keyword
);

Parameters

EventDescriptor [out]

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

Id [in]

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

Version [in]

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

Channel [in]

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

Level [in]

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

Task [in]

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 [in]

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

Keyword [in]

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 macro 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]

Header

Evntprov.h

See also

EventDescZero

 

 

Show:
© 2017 Microsoft