IWMPacketSize interface (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 IWMPacketSize interface controls the maximum size of packets in an ASF file. Its methods are used to control the size of UDP datagrams when the content, live or on-demand, is streamed across a network.

An IWMPacketSize interface can be obtained for either a profile object, a reader object, or a synchronous reader object. You can obtain a pointer to IWMPacketSize by calling the QueryInterface method of any of the other interfaces in one of the supported objects.

Inheritance

The IWMPacketSize interface inherits from the IUnknown interface. IWMPacketSize also has these types of members:

Methods

The IWMPacketSize interface has these methods.

 
IWMPacketSize::GetMaxPacketSize

The GetMaxPacketSize method retrieves the maximum size of a packet in an ASF file.
IWMPacketSize::SetMaxPacketSize

The SetMaxPacketSize method specifies the maximum size of a packet in an ASF file.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

IWMProfileManager Interface

Interfaces

Profile Manager Object