IMFASFContentInfo::GetProfile method (wmcontainer.h)
Retrieves an Advanced Systems Format (ASF) profile that describes the ASF content.
Syntax
HRESULT GetProfile(
[out] IMFASFProfile **ppIProfile
);
Parameters
[out] ppIProfile
Receives an IMFASFProfile interface pointer. The caller must release the interface. If the object does not have an ASF profile, this parameter receives the value NULL.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
Remarks
The profile is set by calling either IMFASFContentInfo::SetProfile or IMFASFContentInfo::ParseHeader.
The ASF profile object returned by this method does not include any of the MF_PD_ASF_xxx attributes (see Presentation Descriptor Attributes). To get these attributes, do the following:
- Call IMFASFContentInfo::GeneratePresentationDescriptor to get the ASF presentation descriptor. You can query the presentation descriptor for the MF_PD_ASF_xxx attributes.
- (Optional.) Call MFCreateASFProfileFromPresentationDescriptor to convert the presentation descriptor into an ASF profile. The profile object created by this function contains the MF_PD_ASF_xxx attributes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wmcontainer.h |
Library | Mfuuid.lib |