DMOGetTypes (Windows CE 5.0)

Send Feedback

This function retrieves the media types registered for a DMO.

HRESULT DMOGetTypes(REFCLSIDclsidDMO,unsigned longulInputTypesRequested,unsigned long* pulInputTypesSupplied,DMO_PARTIAL_MEDIATYPE* pInputTypes,unsigned longulOutputTypesRequested,unsigned long* pulOutputTypesSupplied,DMO_PARTIAL_MEDIATYPE* pOutputTypes);

Parameters

  • clsidDMO
    Class identifier (CLSID) of the DMO.
  • ulInputTypesRequested
    Size of the array passed in the pInputTypes parameter.
  • pulInputTypesSupplied
    Pointer to a variable that receives the number of DMO_PARTIAL_MEDIATYPE structures in pInputTypes that the function fills.
  • pInputTypes
    Pointer to a caller-allocated array of DMO_PARTIAL_MEDIATYPE structures. The size of the array is given in the ulInputTypesRequested parameter. The function fills the array with the input types registered for the DMO.
  • ulOutputTypesRequested
    Size of the array passed in the pOutputTypes parameter.
  • pulOutputTypesSupplied
    Pointer to a variable that receives the number of DMO_PARTIAL_MEDIATYPE structures in pOutputTypes that the function fills.
  • pOutputTypes
    Pointer to a caller-allocated array of DMO_PARTIAL_MEDIATYPE structures. The size of the array is given in the ulOutputTypesRequested parameter. The function fills the array with the DMO output types registered for the DMO.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
S_FALSE Array too small
S_OK Success
E_FAIL Failure

Remarks

If one of the arrays is too small to hold all of the registered types, the function fills the array but returns S_FALSE.

If the DMO did not register any media types, the function returns S_OK and sets *pulInputTypesSupplied and *pulOutputTypesSupplied to zero.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Dmo.h.
Link Library: Msdmo.lib

See Also

DMO Functions | DMO_PARTIAL_MEDIATYPE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.