This function fills the caller's buffer with the textual string associated with the given error code returned by the OS/2 multimedia function. It also contains a 16-bit entry point.
#define INCL_MCIOS2 #include <os2.h> ULONG ulError; /* Error code. */ PSZ pszBuffer; /* Pointer to application's buffer. */ USHORT usLength; /* Length of buffer. */ ULONG rc; /* Return code. */ rc = mciGetErrorString(ulError, pszBuffer, usLength);