Example #1
0
 internal static extern int WfdStartOpenSession(
     [In] IntPtr hClientHandle,
     [In] ref Dot11MacAddress pDeviceAddress,
     [In, Optional] IntPtr pvContext,
     [In] WfdOpenSessionCompleteCallbackDelegate pfnCallback,
     [Out] out IntPtr phSessionHandle
     );
Example #2
0
        public static Dot11MacAddress FromPhysicalAddress(PhysicalAddress phy)
        {
            Dot11MacAddress mac = new Dot11MacAddress();

            mac.Value = phy.GetAddressBytes();
            return(mac);
        }
Example #3
0
        internal static Dot11MacAddress[] ConvertPhysicalAddresses(PhysicalAddress[] phyAddresses)
        {
            int length = phyAddresses.Length;

            Dot11MacAddress[] array = new Dot11MacAddress[length];
            for (int i = 0; i < length; i++)
            {
                array[i] = Dot11MacAddress.FromPhysicalAddress(phyAddresses[i]);
            }
            return(array);
        }
Example #4
0
        internal static PhysicalAddress[] ConvertDot11MacAddresses(Dot11MacAddress[] macAddresses)
        {
            int length = macAddresses.Length;

            PhysicalAddress[] array = new PhysicalAddress[length];
            for (int i = 0; i < length; i++)
            {
                array[i] = Dot11MacAddress.ToPhysicalAddress(macAddresses[i]);
            }
            return(array);
        }
Example #5
0
 internal static extern int WfdUpdateDeviceVisibility(
     [In] ref Dot11MacAddress pDeviceAddress
     );
Example #6
0
 internal static extern int WfdOpenLegacySession(
     [In] IntPtr hClientHandle,
     [In] ref Dot11MacAddress pLegacyMacAddress,
     [In] IntPtr phSessionHandle,
     [In, MarshalAs(UnmanagedType.LPStruct)] Guid pGuidSessionInterface
     );
Example #7
0
 public static PhysicalAddress ToPhysicalAddress(Dot11MacAddress mac)
 {
     return(new PhysicalAddress(mac.Value));
 }
Example #8
0
 internal static PhysicalAddress Dot11MacAddressToPhysicalAddress(Dot11MacAddress macAddress)
 {
     return(Dot11MacAddress.ToPhysicalAddress(macAddress));
 }
Example #9
0
 internal static Dot11MacAddress PhysicalAddressToDot11MacAddress(PhysicalAddress phyAddress)
 {
     return(Dot11MacAddress.FromPhysicalAddress(phyAddress));
 }