public class EnumDmo : ComObject
Provides methods for enumerating Microsoft DirectX Media Objects.
EnumDmo(IntPtr ptr)
Initializes a new instance of the EnumDmo class.
public void EnumDmo(IntPtr ptr)
Parameters
ptr
IntPtrThe native pointer of the COM object.
Clone()
This method is not implemented.
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
GuidGUID that specifies which category of DMO to search. Use Guid.Empty to search every category. See DmoEnumeratorCategories for a list of category guids.
flags
DmoEnumFlagsFlags 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
GuidGUID that specifies which category of DMO to search. Use Guid.Empty to search every category. See DmoEnumeratorCategories for a list of category guids.
flags
DmoEnumFlagsFlags that specify search criteria.
inputTypes
DmoPartialMediaType[]Array of input-Mediatypes.
outputTypes
DmoPartialMediaType[]Array of output-Mediatypes.
Returns
EnumDMO
Next(Int32 itemsToFetch)
Retrieves a specified number of items in the enumeration sequence.
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
Int32Number 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.
ResetNative()
Resets the enumeration sequence to the beginning.
public Int32 ResetNative()
Returns
HRESULT
Skip(Int32 itemsToSkip)
Skips over a specified number of items in the enumeration sequence.
SkipNative(Int32 itemsToSkip)
Skips over a specified number of items in the enumeration sequence.
public Int32 SkipNative(Int32 itemsToSkip)
Parameters
itemsToSkip
Int32Number of items to skip.
Returns
HRESULT