CMediaType.IsValid method

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

Syntax


BOOL IsValid() const;

Parameters

This method has no parameters.

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

Mtype.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CMediaType Class

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.