CMediaType::IsValid (Compact 2013)
3/26/2014
Queries whether the object has a valid major type.
Syntax
BOOL IsValid( ) const;
Parameters
None.
Return Value
Returns one of the following values.
Value |
Description |
---|---|
TRUE |
CMediaType object has a valid major type. |
FALSE |
CMediaType object does not have a valid major type. |
Remarks
When CMediaType objects are constructed, their GUIDs are initialized with GUID_NULL (unless they are constructed based on another AM_MEDIA_TYPE structure or CMediaType object).
This member function is useful for discovering if the object has been correctly initialized.
Requirements
Header |
dshow.h, |
Library |
ole32.lib, |