This method registers this pin type.

HRESULT RegisterPinType(
  CLSID clsFilter,
  LPCWSTR strName,
  CLSID clsMajorType,
  CCLSID clsSubType


  • clsFilter
    [in] Class identifier (CLSID) of the filter to which the pin belongs.
  • strName
    [in] Name by which it is known.
  • clsMajorType
    [in] Major type of the media sample supported by this pin class.
  • clsSubType
    [in] Subtype of the media sample supported by this pin class.

Return Values

Returns an HRESULT value.


The clsMajorType and clsSubType parameters specify the media type of the pin and correspond to the AM_MEDIA_TYPE structure's majortype and subtype members, respectively.


DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.

See Also

IFilterMapper Interface

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.