예제 #1
0
        internal WiFiNetwork(Interop.WiFi.SafeWiFiAPHandle apHandle)
        {
            _apHandle = apHandle;
            _ipv4     = new WiFiAddressInformation(apHandle, AddressFamily.IPv4);
            _ipv6     = new WiFiAddressInformation(apHandle, AddressFamily.IPv6);

            IntPtr strPtr;
            int    ret = Interop.WiFi.AP.GetEssid(_apHandle, out strPtr);

            if (ret != (int)WiFiError.None)
            {
                Log.Error(Globals.LogTag, "Failed to get essid, Error - " + (WiFiError)ret);
            }
            _essid = Marshal.PtrToStringAnsi(strPtr);
        }
예제 #2
0
 internal ConnectionProfile(IntPtr handle)
 {
     ProfileHandle = handle;
     IPv4          = new ConnectionAddressInformation(ProfileHandle, AddressFamily.IPv4);
     IPv6          = new ConnectionAddressInformation(ProfileHandle, AddressFamily.IPv6);
 }