Microsoft DirectX 8.0 |
Microsoft® DirectShow® provides the following function:
AMGetErrorText Retrieves the error message text for a given message ID.
Retrieves the error message for a given return code, using the current language setting.
This function converts HRESULT return codes to error messages. The constant MAX_ERROR_TEXT_LEN specifies the maximum number of characters in an error message.
Note To use this function, your application must link to the library file Quartz.lib.
Syntax
DWORD AMGetErrorText( HRESULT hr, TCHAR *pBuffer, DWORD MaxLen );
Parameters
- hr
- HRESULT value.
- pBuffer
- Pointer to a character buffer that receives the error message.
- MaxLen
- Number of characters in pBuffer.
Return Value
Returns the number of characters returned in the buffer, or zero if an error occurred.