locked
volume control(Windows.Media.Devices.CallControl.GetDefault)

    Question

  • Hi everyone,I created a metra app using C#. Then I want use the "Windows.Media.Devices.CallControl.GetDefault()" funtion to get a CallControl object.

    I think the CallControl object can set\get the volume value, but then call CallControl.GetDefault, throw an exception:

    "An exception of type 'System.Runtime.InteropServices.COMException' occurred in tabtest.exe but was not handled in user code

    Additional information: Invalid value for registry (Exception from HRESULT: 0x80040153 (REGDB_E_INVALIDVALUE))"

    How can I do?

    Monday, December 19, 2011 9:46 AM

Answers

  • Hi Damon,

    Do you have a bluetooth device connected on your system?  There is a known issue in the Developer Preview where CallControl.GetDefault will raise an expectation if there isn't a device available and connected.

    --Rob

    • Marked as answer by Damon.Tian Tuesday, December 20, 2011 6:50 AM
    Tuesday, December 20, 2011 1:52 AM
    Owner

All replies

  • Hi Damon,

    Do you have a bluetooth device connected on your system?  There is a known issue in the Developer Preview where CallControl.GetDefault will raise an expectation if there isn't a device available and connected.

    --Rob

    • Marked as answer by Damon.Tian Tuesday, December 20, 2011 6:50 AM
    Tuesday, December 20, 2011 1:52 AM
    Owner
  • Hi Rob,

    My BT is disconnected.

    But,msdn says:

    This method may return a NULL pointer if the device doesn't support this functionality.

    Thanks.

    Tuesday, December 20, 2011 6:50 AM
  • Hi ,I want to know how to connect a bluetooth device ?

    who can give me a hand?

    thanks


    • Edited by thanksdmh Thursday, March 22, 2012 6:47 AM
    Wednesday, March 21, 2012 6:18 AM