Windows Media Format SDK banner art
PreviousNext

IWMMediaProps::GetType

The GetType method retrieves the major type of the media (audio, video, or script).

Syntax

HRESULT GetType(
  GUID*  pguidType
);

Parameters

  pguidType

[out]  Pointer to a globally unique identifier (GUID) specifying the type.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Meaning
E_INVALIDARG pguidType is NULL.

Remarks

These media types are used by the writer, the reader, and the profile object to identify the media-type-specific properties of a media stream.

GetType is provided for convenience; it returns the same value as the major type of WM_MEDIA_TYPE.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.