WORD waveInGetID(hWaveIn, lpwDeviceID)
This function gets the device ID for a waveform input device.
HWAVEIN hWaveIn
Specifies the handle to the waveform input device.
LPWORD lpwDeviceID
Specifies a pointer to the WORD-sized memory location to fill with the device ID.
Returns zero if successful. Otherwise, it returns an error number. Possible error returns are:
MMSYSERR_INVALHANDLE
The hWaveIn parameter specifies an invalid handle.