The mciGetYieldProc function retrieves the address of the callback function associated with the "wait" (MCI_WAIT) flag. The callback function is called periodically while an MCI device waits for a command specified with the "wait" flag to finish.
YIELDPROC mciGetYieldProc( MCIDEVICEID IDDevice, LPDWORD lpdwYieldData );
MCI device being monitored (the device performing an MCI command).
Pointer to a buffer containing yield data to be passed to the callback function. This parameter can be NULL if there is no yield data.
Returns the address of the current yield callback function if successful or NULL if the device identifier is invalid.
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Mmsystem.h; include Windows.h.
Library: Use Winmm.lib.