SetMicVolume
This function routes the audio to the specified input/output device.
DWORD SetAudioPath(
   DWORD nPath
);
Parameters
nPath
[in] A DWORD value indicating the new audio path. See Remarks section below.

Return values
Zero indicates success. A non zero number indicates that an error occurred. For additional error information, enable the library debug mode.

Remarks
This API changes the audio path for both the input device (microphone) and the output device (speaker).
The nPath parameter can one of the following values:
  • 0, for none
  • 1, for handset
  • 2, for speakerphone
  • 3, for headset
  • 4, for carkit

  • VoIP applications that use DynRIL should call this function to switch between the Earpiece Speaker and the Back Speaker of a classic Windows Mobile device.
    To switch to the Earpiece, nPath must be 1.
    To switch to the Back Speaker, nPath must be 0.

    Requirements
    OS Versions: Windows CE 1.0 and later.
    Header: dynril.h.
    Dll Library: dynrildll.dll.

    For the latest DynRIL version, visit www.teksoftco.com.