Share via


IWMPacketSize2 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 IWMPacketSize2 interface provides methods to set and retrieve the minimum packet size for a profile.

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

Inheritance

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

Methods

The IWMPacketSize2 interface has these methods.

 
IWMPacketSize2::GetMinPacketSize

The GetMinPacketSize method retrieves the minimum packet size for files created with the profile. If you use this method from an interface belonging to a reader or synchronous reader object, the retrieved minimum packet size will always be zero.
IWMPacketSize2::SetMinPacketSize

The SetMinPacketSize method sets the minimum packet size for files created with the profile. This method cannot be called from an interface belonging to a reader or synchronous reader object.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

IWMPacketSize Interface

Interfaces

Profile Object

Reader Object

Synchronous Reader Object