waveInGetID

Syntax

WORD waveInGetID(hWaveIn, lpwDeviceID)

This function gets the device ID for a waveform input device.

Parameters

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.

Return Value

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

MMSYSERR_INVALHANDLE

The hWaveIn parameter specifies an invalid handle.