Condividi tramite


MoCreateMediaType (Windows CE 5.0)

Send Feedback

This function allocates a new media type structure.

HRESULT MoCreateMediaType(DMO_MEDIA_TYPE** ppmt,DWORDcbFormat);

Parameters

  • ppmt
    Address of a pointer to a DMO_MEDIA_TYPE structure that receives the allocated structure.
  • cbFormat
    Number of bytes to allocate for the format block, which can be zero.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
S_OK Success
E_OUTOFMEMORY Insufficient memory
E_POINTER NULL pointer argument

Remarks

This function allocates a new DMO_MEDIA_TYPE structure and then initializes it by calling the MoInitMediaType function.

The caller must delete the media type structure by calling the MoDeleteMediaType function.

Requirements

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

See Also

DMO Functions | MoInitMediaType | MoDeleteMediaType | DMO_MEDIA_TYPE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.