mciSetYieldProc

  UINT mciSetYieldProc(wDeviceID, fpYieldProc, dwYieldData)    
  MCIDEVICEID wDeviceID;    
  YIELDPROC fpYieldProc;    
  DWORD dwYieldData;    

The mciSetYieldProc function sets the address of a procedure to be called periodically when an MCI device is waiting for a command to complete because the WAIT parameter was specified.

Parameters

wDeviceID

Specifies the device ID to assign a procedure to.

fpYieldProc

Specifies the procedure to call when yielding for the given device. Set to NULL to disable any existing yield proc.

dwYieldData

Specifies the data sent to the yield procedure when it is called for the given device.

Return Value

Returns TRUE if successful. Returns FALSE for an invalid device ID.

Comments

This call overrides any previous yield procedure for this device.