The mciSetYieldProc function sets the address of a procedure to be called periodically when an MCI device is waiting for a command to finish because the "wait" (MCI_WAIT) flag was specified.
UINT mciSetYieldProc(
MCIDEVICEID IDDevice,
YIELDPROC yp,
DWORD dwYieldData
);
Returns TRUE if successful or FALSE otherwise.
This function overrides any previous yield procedure for this device.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: Use winmm.lib.