Пример #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 WiFiEap(Interop.WiFi.SafeWiFiAPHandle apHandle)
 {
     _apHandle = apHandle;
 }
Пример #3
0
 private void Initialize()
 {
     Interop.WiFi.SafeWiFiAPHandle apHandle = new Interop.WiFi.SafeWiFiAPHandle(_apHandle);
     _network  = new WiFiNetwork(apHandle);
     _security = new WiFiSecurity(apHandle);
 }
Пример #4
0
 internal WiFiSecurity(Interop.WiFi.SafeWiFiAPHandle apHandle)
 {
     _apHandle = apHandle;
     _eap      = new WiFiEap(apHandle);
 }
Пример #5
0
 internal WiFiAddressInformation(Interop.WiFi.SafeWiFiAPHandle handle, AddressFamily family)
 {
     _handle = handle;
     _family = family;
 }