Share via


DRVM_MAPPER_PREFERRED_GET (Windows Embedded CE 6.0)

1/6/2010

This message is used to query the preferred device, using the existing waveInMessage or waveOutMessage function to the WAVE_MAPPER device id.

DRVM_MAPPER_PREFERRED_GET
  wParam =pDeviceIDlParam = Reserved

Parameters

  • pDeviceID
    Pointer to the DWORD variable into which the function writes the device ID of the current preferred device. If no device is available that qualifies as a preferred device, the variable will cotntain -1.
  • lParam
    Reserved; must be zero.

Return Values

One of the values described in the following table is returned.

Value Description

MMSYSERR_NOERROR

The call was a success.

MMSYSERR_ERROR

The call failed.

Remarks

DRVM_MAPPER_PREFERRED_SET and DRVM_MAPPER_PREFERRED_GET are not defined by Windows Embedded CE. To use these messages, you must first define them in your code:

#define DRVM_MAPPER 0x2000
#define DRVM_MAPPER_PREFERRED_GET (DRVM_MAPPER+21) 
#define DRVM_MAPPER_PREFERRED_SET (DRVM_MAPPER+22) 

See Also

Reference

Waveform Audio Messages
waveInMessage
waveOutMessage

Concepts

Switching Preferred Audio Devices