DXGetErrorDescription

Returns a string that describes a DirectX HRESULT value.

TCHAR * DXGetErrorDescription(
  HRESULT hr
);

Parameters

hr
[in] Any HRESULT return code from XACT, Direct3D 10, D3DX10, Direct3D 9, D3DX9, Direct3D 8, D3DX8, DirectDraw, DirectMusic, DirectSound, DirectInput, or DirectShow.

Return Values

Returns a pointer to a character string that describes the HRESULT code.

Remarks

This function supports Win32 Winerror.h error codes.

Requirements

Header: Declared in Dxerr.h.