mobile-broadband-api

hresult from IMbnInterfaceManager::GetInterfaces when no MBN device exists

对着背影说爱祢 提交于 2020-01-03 15:57:39
问题 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

struggling with mobile broadband api windows 7 and windows 8 with C#, not sure what to install

泄露秘密 提交于 2019-12-12 13:55:22
问题 I have an application that requires to control mobile broadband API. I am struggling on correctly installing the api on my devices. I've been follow the instructions in this document: http://www.google.be/url?sa=t&rct=j&q=&esrc=s&frm=1&source=web&cd=1&cad=rja&ved=0CC0QFjAA&url=http%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F7%2FE%2F7%2F7E7662CF-CBEA-470B-A97E-CE7CE0D98DC2%2FMB_ManagedCode.docx&ei=kyvmUs7jE4e60QWbooHYDg&usg=AFQjCNG6yaGf4sRhdbWI99fE7tmQX8cmnA&sig2=2Fg-_DRYBIselKR19wTq2Q and

C# Read Windows Mobile Broadband connection properties

孤人 提交于 2019-11-29 04:51:39
问题 First up, here's the background: We have a Windows Forms application (written in C#, .NET Framework 3.5) currently running on full Windows 7 tablets, which have a 3G module built in that is used for data connectivity. The data connection is configured as a normal mobile broadband connection in Windows (so Windows manages the connectivity itself), and the connection shows up in Control Panel > Network and Internet > Network Connections and it works fine - the application is able to communicate