Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.23 KB

mciGetErrorString.md

File metadata and controls

52 lines (37 loc) · 1.23 KB

Home

Function name : mciGetErrorString

Group: Windows Multimedia - Library: winmm


The mciGetErrorString function retrieves a string that describes the specified MCI error code.


Code examples:

Accessing a CD device (cdaudio) with Multimedia Command Strings
Using Multimedia Command Strings to play MIDI files

Declaration:

BOOL mciGetErrorString(
  DWORD fdwError,
  LPTSTR lpszErrorText,
  UINT cchErrorText
);  

FoxPro declaration:

DECLARE INTEGER mciGetErrorString IN winmm;
	INTEGER   fdwError,;
	STRING  @ lpszErrorText,;
	INTEGER   cchErrorText  

Parameters:

fdwError Error code returned by the mciSendCommand or mciSendString function.

lpszErrorText Pointer to a buffer that receives a null-terminated string describing the specified error.

cchErrorText Length of the buffer, in characters, pointed to by the lpszErrorText parameter.


Return value:

Returns TRUE if successful or FALSE if the error code is not known.