Using a waveform device handle, you can retrieve the device ID for an open waveform device. Use the following functions to get the device ID:
waveInGetID
Gets the device ID for a waveform input device.
waveOutGetID
Gets the device ID for a waveform output device.