When DriverProc receives an MCI message, its double-word return value must be assigned as follows:
The MCI error return values are defined in mmsystem.h, and are prefixed with “MCIERR_”. For a definition of each MCI error return value, see the Win32 SDK. Note that an additional set of error return values is defined for mciSendString. These additional values are returned by winmm.dll, not by MCI drivers.
When DriverProc receives one of the standard driver messages, its return value must be zero if an error occurs. Note that this is opposite to the situation for MCI messages.