WMT_FILESINK_DATA_UNIT structure (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The WMT_FILESINK_DATA_UNIT structure is used by IWMWriterFileSink3::OnDataUnitEx to deliver information about a packet.

Syntax

typedef struct _WMT_FILESINK_DATA_UNIT {
  WMT_BUFFER_SEGMENT   packetHeaderBuffer;
  DWORD                cPayloads;
  WMT_BUFFER_SEGMENT   *pPayloadHeaderBuffers;
  DWORD                cPayloadDataFragments;
  WMT_PAYLOAD_FRAGMENT *pPayloadDataFragments;
} WMT_FILESINK_DATA_UNIT;

Members

packetHeaderBuffer

A WMT_BUFFER_SEGMENT structure specifying the buffer segment that contains the packet header.

cPayloads

Count of payloads in this packet. This is also the number of elements in the array specified in pPayloadHeaderBuffers.

pPayloadHeaderBuffers

Pointer to an array of WMT_BUFFER_SEGMENT structures. Each element specifies a buffer segment that contains a payload header. The number of elements is specified by cPayloads.

cPayloadDataFragments

Count of payload data fragments in this packet. This is also the number of elements in the array pointed to by pPayloadDataFragments.

pPayloadDataFragments

Pointer to an array of WMT_PAYLOAD_FRAGMENT structures. Each element specifies a buffer segment that contains a payload fragment. The number of elements is specified by cPayloadDataFragments.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only],Windows Media Format 9 Series SDK, or later versions of the SDK
Minimum supported server Windows 2000 Server [desktop apps only]
Header wmsdkidl.h (include Wmsdk.h)

See also

IWMWriterFileSink3::OnDataUnitEx

Structures