how is the windows API (WlanQueryInterface ) response containing enum _WLAN_CONNECTION_MODE mapped into command line wifi connection mode values Auto/ Manual?

Abhay Yadav 0 Reputation points
2024-04-19T11:53:14.05+00:00

windows API (WlanQueryInterface ) response for any particular wifi profile gives connection mode as below Enum

_WLAN_CONNECTION_MODE {

wlan_connection_mode_profile = 0,

wlan_connection_mode_temporary_profile,

wlan_connection_mode_discovery_secure,

wlan_connection_mode_discovery_unsecure,

wlan_connection_mode_auto,

wlan_connection_mode_invalid }

How is this enum mapped such that netsh wlan show profile "wifi profile" command gives connection mode as either Auto or Manual?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,757 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 88,556 Reputation points
    2024-04-19T12:40:49.95+00:00

    netsh calls WlanGetProfile and reads connectionMode from XML string

    1 person found this answer helpful.

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.