mciGetErrorString

  WORD mciGetErrorString(dwError, lpstrBuffer, uLength)    
  DWORD dwError;    
  LPSTR lpstrBuffer;    
  UINT uLength;    

The mciGetErrorString function returns a textual description of the specified MCI error.

Parameters

dwError

Specifies the error code returned by mciSendCommand or mciSendString.

lpstrBuffer

Specifies a pointer to a buffer that is filled with a textual description of the specified error.

uLength

Specifies the length of the buffer.

Return Value

Returns TRUE if successful. Otherwise, the given error code was not known.