Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Queries whether the object has a valid major type.
BOOL IsValid( ) const;
Return Values
Returns one of the following values.
TRUE | CMediaTypeobject has a valid major type. |
FALSE | CMediaTypeobject does not have a valid major type. |
Remarks
When CMediaTypeobjects are constructed, their GUIDs are initialized with GUID_NULL (unless they are constructed based on another AM_MEDIA_TYPEstructure or CMediaTypeobject). This member function is useful for discovering if the object has been correctly initialized.