Hardware Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMbnInterface::ScanNetwork method

Asynchronously scans the network to get a list of visible providers.


HRESULT ScanNetwork(
  [out] ULONG *requestID


requestID [out]

Pointer to the request ID set by the operating system for this request. The asynchronous response will contain this same requestID.

Return value

This method can return one of these values.

Return codeDescription

The method completed successfully.


The Mobile Broadband service is not running on this system.


The interface is invalid. Most likely because the Mobile Broadband device has been removed from the system.


The interface is invalid. Most likely because the Mobile Broadband device has been removed from the system.



This method initiates a network scan operation. When completed successfully, it populates the operating system's cache of visible providers and applications can call the GetVisibleProviders method of IMbnInterface to get a list of visible networks.

This is a time consuming operation. Therefore, applications should first call GetVisibleProviders and should call ScanNetwork only when the cached information is old.

This is an asynchronous operation and ScanNetwork will return immediately. If this method returns successfully (with S_OK), then upon completion of the scan operation, the operating system will call the OnScanNetworkComplete method of IMbnInterfaceEvents to notify the application of operation completion.

If the device is removed from the system before this operation is complete, there is no guarantee that the completion notification will be received by the application.


Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported



See also




Community Additions

© 2015 Microsoft