waveInGetID

  MMRESULT waveInGetID(hWaveIn, lpuDeviceID)    
  HWAVEIN hWaveIn;    
  PUINT lpuDeviceID;    

The waveInGetID function gets the device ID for a waveform input device.

Parameters

hWaveIn

Specifies the handle to the waveform input 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 hWaveIn is in use on another thread.