IVCmdAttributes::DeviceGet

HRESULT DeviceGet(DWORD *pdwDeviceID);

Retrieves the device identifier of the wave-in audio device used for a voice-command site.

· Returns NOERROR if successful, or one of these error values:

E_INVALIDARG
VCMDERR_INVALIDMODE
VCMDERR_OUTOFMEM
VCMDERR_VALUEOUTOFRANGE

pdwDeviceID

[out] Address of a variable that receives the device identifier of the audio device currently used by the site.

An application can obtain a list of devices by calling the waveInGetNumDevs and waveInGetDevCaps multimedia functions. Most applications do not need to retrieve or set the audio device.

The device for a site is saved between uses of the site, even if the user shuts down the computer in the meantime.