Unable to obtain profile of connected network in Vista/7
问题 I have a piece of code implemented using the Managed Native WiFi. It is used to obtain the profile details of the connected network for displaying on screen. // Start the wireless configuration service if it is stopped startservice(); WlanClient client = new WlanClient(); bHasWiFi = false; string strConnectionStatus = Constants.BlankString; // Enumerate all interfaces foreach (WlanClient.WlanInterface wlanIface in client.Interfaces) { bHasWiFi = true; strConnectionStatus = wlanIface