hresult from IMbnInterfaceManager::GetInterfaces when no MBN device exists
问题 I have the following code working in Windows 7: MbnInterfaceManager mbnInfMgr = new MbnInterfaceManager(); IMbnInterfaceManager mbnInfMgrInterface = mbnInfMgr as IMbnInterfaceManager; if (mbnInfMgrInterface != null) { IMbnInterface[] mobileInterfaces = mbnInfMgrInterface.GetInterfaces() as IMbnInterface[]; } No problems when the MBN device exists but when an MBN device doesn't exist I get the following exception in the call to GetInterfaces(): {System.Runtime.InteropServices.COMException