|Microsoft DirectX 9.0|
The IsValid method determines whether a major type has been assigned to this object.
BOOL IsValid(void) const;
Returns TRUE if a major type has been assigned to this object. Otherwise, returns FALSE.
By default, CMediaType objects are initialized with a major type of GUID_NULL. Call this method to determine whether the object has been correctly initialized.