About the Native Wifi API
The Native Wifi API contains functions, structures, and enumerations that support wireless network connectivity and wireless profile management. The API can be used for both infrastructure and ad hoc networks. The Wireless Ad Hoc API is a simplified object-oriented interface for creating, managing, and using ad hoc networks.
Ad hoc mode might not be available in future versions of Windows. Starting with Windows 8.1 and Windows Server 2012 R2, use Wi-Fi Direct instead.
The implementation of the Ad Hoc API uses the Native Wifi API. This means that Ad Hoc API calls can trigger Native Wifi notifications, and vice versa.
Mixing Native Wifi API calls and Wireless Ad Hoc API calls is not recommended. Developers should choose a programming approach before designing an application. If your application uses or manages infrastructure networks, you should use the Native Wifi API. If your application requires profile management functionality, you should use the Native Wifi API. Otherwise, you should use the Wireless Ad Hoc API.