Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMediaObject::GetInputCurrentType

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This method retrieves the media type that was set for an input stream, if any.


HRESULT GetInputCurrentType(
  DWORD dwInputStreamIndex,
  DMO_MEDIA_TYPE* pmt
);

dwInputStreamIndex

Zero-based index of an input stream on the DMO.

pmt

[out] Pointer to a DMO_MEDIA_TYPE structure allocated by the caller. The method fills the structure with the media type.

Returns an HRESULT value. Possible values include the following.

Value Description

S_OK

Success

DMO_E_INVALIDSTREAMINDEX

Invalid stream index

DMO_E_TYPE_NOT_SET

Media type was not set

E_OUTOFMEMORY

Insufficient memory

The caller must set the media type for the stream before calling this method. To set the media type, call the IMediaObject::SetInputType method.

If the method succeeds, call MoFreeMediaType to free the format block.

Headerdmo.h
LibraryDmoguid.lib
Windows Embedded CEWindows CE .NET 4.1 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft