Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining

EventDataDescCreate macro

Sets the values of an event data descriptor.


void EventDataDescCreate(
  [out]       PEVENT_DATA_DESCRIPTOR EventDataDescriptor,
  [in]  const PVOID                  DataPtr,
  [in]        ULONG                  DataSize


EventDataDescriptor [out]

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

DataPtr [in]

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

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

Return value

This macro does not return a value.


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


Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]





Community Additions

© 2015 Microsoft