locked
Use IMbnDeviceServicesContext.GetDeviceService(), but get error code 0x80070032

    Question

  • When I use IMbnDeviceServicesContext.GetDeviceService() to get basic connect uuid has error, the error code is 

    "Unexpected exception occurred: System.Runtime.InteropServices.COMException (0x80070032)".

    How can I solve this problem?

    try
    {
        uint requestId = 0;
    
        IMbnDeviceService deviceService;
    
        //UUID_BASIC_CONNECT {A289CC33-BCBB-8B4F-B6B0-133EC2AAE6DF}
        deviceService = m_MbnDeviceServicesContext.GetDeviceService("{A289CC33-BCBB-8B4F-B6B0-133EC2AAE6DF}");
        // Open Commands Session
        deviceService.OpenCommandSession(out requestId);
    
        //deviceService.QuerySupportedCommands(out requestId);
        rootPage.NotifyUser(deviceServicesOutputStr, NotifyType.StatusMessage);
    }


    Friday, March 8, 2013 10:13 AM

Answers

  • 0x80070032 is  ERROR_NOT_SUPPORTED: The request is not supported.

    --Rob

    • Marked as answer by Alice Ding Monday, March 11, 2013 1:42 AM
    Friday, March 8, 2013 8:39 PM
    Owner