MFValidateMediaTypeSize function
Validates the size of a buffer for a video format block.
Syntax
HRESULT MFValidateMediaTypeSize( _In_ GUID FormatType, _In_ UINT8 *pBlock, _In_ UINT32 cbSize );
Parameters
- FormatType [in]
-
GUID that specifies the type of format block. It must be one of the following values:
- pBlock [in]
-
Pointer to a buffer that contains the format block.
- cbSize [in]
-
Size of the pBlock buffer, in bytes.
Return value
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The buffer that contains the format block is large enough. |
|
The buffer that contains the format block is too small, or the format block is not valid. |
|
This function does not support the specified format type. |
Remarks
This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:
- Windows XP with Service Pack 2 (SP2) and later.
- Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (October 2006 Update Rollup for Windows XP Media Center Edition) installed.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also