waveOutGetID

Syntax

WORD waveOutGetID(hWaveOut, lpwDeviceID)

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

Parameters

HWAVEOUT hWaveOut

Specifies the handle to the waveform output device.

LPWORD lpwDeviceID

Specifies a pointer to the WORD-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:

MMSYSERR_INVALHANDLE

The hWaveOut parameter specifies an invalid handle.