waveOutGetDevCaps

Syntax

WORD waveOutGetDevCaps(wDeviceID, lpCaps, wSize)

This function queries a specified waveform device to determine its capabilities.

Parameters

WORD wDeviceID

Identifies the waveform output device.

LPWAVEOUTCAPS lpCaps

Specifies a far pointer to a WAVEOUTCAPS structure. This structure is filled with information about the capabilities of the device.

WORD wSize

Specifies the size of the WAVEOUTCAPS structure.

Return Value

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

MMSYSERR_BADDEVICEID

Specified device ID is out of range.

MMSYSERR_NODRIVER

The driver was not installed.

Comments

Use waveOutGetNumDevs to determine the number of waveform output devices present in the system. The device ID specified by wDeviceID varies from zero to one less than the number of devices present. Only wSize bytes (or less) of information is copied to the location pointed to by lpCaps. If wSize is zero, nothing is copied, and the function returns zero.

See Also

waveOutGetNumDevs