CheckVideoInfo2Type
Microsoft DirectShow 9.0 |
CheckVideoInfo2Type
The CheckVideoInfo2Type function checks a media type that contains a VIDEOINFOHEADER2 format structure for certain common errors that can cause buffer overruns or integer overflows.
- Note This function does not guarantee that the media type is valid or that code using the structure is secure.
Syntax
HRESULT CheckVideoInfo2Type( const AM_MEDIA_TYPE * pmt );
Parameters
pmt
Pointer to the AM_MEDIA_TYPE structure to validate.
Return Value
Returns one of the following HRESULT values.
Value | Description |
S_OK | Success |
E_POINTER | NULL pointer value |
VFW_E_TYPE_NOT_ACCEPTED | Invalid media type |
Remarks
This function calls ValidateBitmapInfoHeader to validate the BITMAPINFOHEADER structure in the media type. If the format type is not FORMAT_VideoInfo2, the function returns VFW_E_TYPE_NOT_ACCEPTED.
Requirements
** Header:** Include checkbmi.h.
** Library:** None.
See Also