waveOutGetID

  MMRESULT waveOutGetID(hWaveOut, lpuDeviceID)    
  HWAVEOUT hWaveOut;    
  PUINT lpuDeviceID;    

The waveOutGetID function gets the device ID for a waveform output device.

Parameters

hWaveOut

Specifies the handle to the waveform output device.

lpuDeviceID

Specifies a pointer to the UINT-sized memory location to be filled with the device ID.

Return Value

Returns zero if successful. Otherwise, it returns an error number. Possible error returns are:

Value Meaning

MMSYSERR_INVALHANDLE The hWaveIn parameter specifies an invalid handle.
MMSYSERR_HANDLEBUSY The handle hWaveOut is in use on another thread.