how should we handle MBN-related events in native environments such as Windows Native Service, MFC projects, and normal console apps?

Hunter 5 Reputation points
2023-08-08T01:14:25.4566667+00:00
   We have been using the Mobile Broadband API (MBN API) for our development. According to the information we obtained from the Microsoft website, it will be gradually replaced by the Windows Runtime API. In that case, how should we handle MBN-related events in native environments such as Windows Native Service, MFC projects, and normal console apps?

eg:

https://learn.microsoft.com/en-us/windows/win32/api/mbnapi/nn-mbnapi-imbnconnection

Windows development Windows API - Win32
Windows for business Windows Server User experience Other
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    2023-08-08T02:17:04.7933333+00:00

    Hello @Hunter,

    It doesn't mean the Mobile Broadband API (MBN API) will be removed. It's recommended to use the Windows.Networking.Connectivity namespace.

    To use the Windows.Networking.Connectivity namespace in native environments, see Get started with C++/WinRT for more information.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.