Methods (11)
Namespace: CSCore.DMO

Syntax

public class EnumDmo : ComObject

Base Type

Summary

Provides methods for enumerating Microsoft DirectX Media Objects.

Uses

Methods

EnumDmo(IntPtr ptr)

Initializes a new instance of the EnumDmo class.

public void EnumDmo(IntPtr ptr)

Parameters

ptr

IntPtr

The native pointer of the COM object.

Clone()

This method is not implemented.

public EnumDmo Clone()

Returns

This method is not implemented an will throw an DmoException with the error code E_NOTIMPL.

save

reset

Drag to pan - Use Mousewheel + Ctrl to zoom

CloneNative(IntPtr& pEnum)

This method is not implemented.

public Int32 CloneNative(IntPtr& pEnum)

Parameters

pEnum

IntPtr&

Reserved

Returns

E_NOTIMPL

EnumerateDMOs(Guid category, DmoEnumFlags flags)

Enumerates DMOs listed in the registry.

public static IEnumerable<DmoEnumItem> EnumerateDMOs(Guid category, DmoEnumFlags flags)

Parameters

category

Guid

GUID that specifies which category of DMO to search. Use Guid.Empty to search every category. See DmoEnumeratorCategories for a list of category guids.

flags

DmoEnumFlags

Flags that specify search criteria.

Returns

An IEnumerable that can be used to iterate through the enumerated DMOs.

EnumerateDMOs(Guid category, DmoEnumFlags flags, DmoPartialMediaType[] inputTypes, DmoPartialMediaType[] outputTypes)

Enumerates DMOs listed in the registry. The caller can search by category, media type, or both.

public static EnumDmo EnumerateDMOs(Guid category, DmoEnumFlags flags, DmoPartialMediaType[] inputTypes, DmoPartialMediaType[] outputTypes)

Parameters

category

Guid

GUID that specifies which category of DMO to search. Use Guid.Empty to search every category. See DmoEnumeratorCategories for a list of category guids.

flags

DmoEnumFlags

Flags that specify search criteria.

inputTypes

DmoPartialMediaType[]

Array of input-Mediatypes.

outputTypes

DmoPartialMediaType[]

Array of output-Mediatypes.

Returns

EnumDMO

save

reset

Drag to pan - Use Mousewheel + Ctrl to zoom

NextNative(Int32 itemsToFetch, Guid[]& clsids, String[]& names, Int32& itemsFetched)

Retrieves a specified number of items in the enumeration sequence.

public Int32 NextNative(Int32 itemsToFetch, Guid[]& clsids, String[]& names, Int32& itemsFetched)

Parameters

itemsToFetch

Int32

Number of items to retrieve.

clsids

Guid[]&

Array that is filled with the CLSIDs of the enumerated DMOs.

names

String[]&

Array that is filled with the friendly names of the enumerated DMOs.

itemsFetched

Int32&

Actual number of items retrieved.

Returns

HRESULT

Reset()

Resets the enumeration sequence to the beginning.

public void Reset()

save

reset

Drag to pan - Use Mousewheel + Ctrl to zoom

ResetNative()

Resets the enumeration sequence to the beginning.

public Int32 ResetNative()

Returns

HRESULT

SkipNative(Int32 itemsToSkip)

Skips over a specified number of items in the enumeration sequence.

public Int32 SkipNative(Int32 itemsToSkip)

Parameters

itemsToSkip

Int32

Number of items to skip.

Returns

HRESULT