Compartir a través de


CMediaType::IsValid

 
Microsoft DirectShow 9.0

CMediaType::IsValid

The IsValid method determines whether a major type has been assigned to this object.

Syntax

  BOOL IsValid(void) const;

Return Value

Returns TRUE if a major type has been assigned to this object. Otherwise, returns FALSE.

Remarks

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.

Requirements

**  Header:** Declared in Mtype.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also