Hi,
I want to get OID_WWAN_DEVICE_CAPS informaiton using IMbnInterfaceManager interface.
but i am confused how to get the IMbnInterface, Please see below code.
CComPtr WWANInterfaceMgr;
CComPtr WWANInterface;
CString strInterfaceID = _T(“\DEVICE\{04FB2A54-C8EA-4C98-B728-15C6D785DEC5}”);
hResult = WWANInterfaceMgr->GetInterface(strInterfaceID, &WWANInterface);
///above line fails to get enumerate Interface ID and how to get IMbnInterface
Could anybody help me or send me a link of source code.
Thanks in advance.
-deven
The input to IMbnInterfaceManager::GetInterface is a string of this form:
L"{C100BE9A-D33A-4A4B-BF23-BBEF4663D017}"
Also, it’s not the same GUID that PNP manager uses for the underlying device object; it’s the network interface’s ifGuid. (You can see get the ifGuid through IMbnInterfaceManager::GetInterfaces , or through the iphlper API. For a quick sanity check, you can find the ifGuid in !ndiskd.interfaces, although be careful to look at the miniport’s interface, and not an overlying LWF’s interface).
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Sunday, November 07, 2010 11:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to use IMbnInterfaceManager for WWAN information.
Hi,
I want to get OID_WWAN_DEVICE_CAPS informaiton using IMbnInterfaceManager interface.
but i am confused how to get the IMbnInterface, Please see below code.
CComPtr WWANInterfaceMgr; CComPtr WWANInterface;
CString strInterfaceID = _T(“\DEVICE\{04FB2A54-C8EA-4C98-B728-15C6D785DEC5}”);
hResult = WWANInterfaceMgr->GetInterface(strInterfaceID, &WWANInterface); ///above line fails to get enumerate Interface ID and how to get IMbnInterface
Could anybody help me or send me a link of source code.
Thanks in advance.
-deven
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer