REGPINTYPES structure (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The REGPINTYPES structure contains media type information for registering a filter.

Syntax

typedef struct REGPINTYPES {
  const CLSID *clsMajorType;
  const CLSID *clsMinorType;
} REGPINTYPES;

Members

clsMajorType

Major type GUID of the media type.

clsMinorType

Sub type GUID of the media type. Can be MEDIASUBTYPE_NULL.

Remarks

This structure is used by the IFilterMapper2 interface to identify the media types that a pin supports. The equivalent AMOVIESETUP_MEDIATYPE type is used in class factory templates (CFactoryTemplate).

To register a range of subtypes within the same major type, use the value MEDIASUBTYPE_NULL.

For more information, see How to Register DirectShow Filters.

Requirements

Requirement Value
Header strmif.h (include Dshow.h)

See also

DirectShow Structures

Media Types