How to correctly suspend/resume an MBIM connection on Windows 8? RRS feed

  • Question

  • I'd like to find information on the correct way to handle Windows system power state events on my MBIM-based application.    

    The IMbnDeviceService object being used before suspend appears valid after a resume, but any SetCommand I try to execute after resume will fail.  My code does wait for an "OnInterfaceStateChange" to indicate the device is available on resume before sending any commands. 

    I've tried  executing a CloseCommandSession (both at suspend and resume) followed by an OpenCommandSession, but the Open command return with a fail code 0x8007000c.  The close also fails if called after resume.   The only thing that works is to close and then completely re-establish the MBIM connection.  

    Would you have advice to apply to MBMIM regarding power state transitions?

    Thursday, May 30, 2013 8:47 PM