EventDataDescCreate function (evntprov.h)

Sets the values of an EVENT_DATA_DESCRIPTOR.


  [out] PEVENT_DATA_DESCRIPTOR EventDataDescriptor,
  [in]  const VOID             *DataPtr,
  [in]  ULONG                  DataSize


[out] EventDataDescriptor

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

[in] DataPtr

A pointer to the event data. This value is used to set the Ptr member of the descriptor.

DataPtr parameter may be NULL if and only if DataSize is 0.

[in] DataSize

The size (in bytes) of the event data. The value is used to set the Size member of the descriptor.

Return value

This function does not return a value.


This is a convenience macro for setting the members of the EVENT_DATA_DESCRIPTOR structure. Note that if you initialize the members yourself without calling EventDataDescCreate, you should set Ptr = (UINT_PTR)DataPtr, and you must initialize the Reserved field (e.g. set it to 0),


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