EventDataDescCreate function

Sets the values of an event data descriptor.

Syntax

EVNTPROV_PFORCEINLINE VOID EventDataDescCreate(
  PEVENT_DATA_DESCRIPTOR EventDataDescriptor,
  const VOID             *DataPtr,
  ULONG                  DataSize
);

Parameters

EventDataDescriptor

The data descriptor whose member values are set to those of the remaining parameters. For details, see EVENT_DATA_DESCRIPTOR.

DataPtr

A pointer to the event data used to set the Ptr member of EVENT_DATA_DESCRIPTOR.

If the event data's type is a NULL-terminated string, the DataPtr parameter must not be NULL.

If the event data's type is a string whose size is described by some other field in the event, the DataPtr parameter may be NULL.

DataSize

The size of the event data. The value is used to set the Size member of EVENT_DATA_DESCRIPTOR.

Return Value

This function does not return a value.

Remarks

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

Requirements

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