MCIERR Return Values

The mciSendCommand and mciSendString functions return zero if they are successful; otherwise, they return a DWORD value that contains one of the following error values in the low word.

You can obtain a description of individual return values by passing the return values to the mciGetErrorString function.