AdHoc Networks supported?

Jul 8, 2011 at 1:06 PM

Hi,

 

I want to check if adhoc networks are supported by this API? When I'm reading existing networks by this procedure

 

foreach (Wlan.WlanProfileInfo profileInfo in wlanIface.GetProfiles())
                {
                    string name = profileInfo.profileName; // this is typically the network's SSID
                    string xml = wlanIface.GetProfileXml(profileInfo.profileName);
                }

all profiles are listed excepted the adhoc networks. So I have no idea how to build a adhoc profile.

Perhaps someone has an idea.

Nice weekend

Dec 19, 2013 at 12:00 PM
Edited Dec 19, 2013 at 12:01 PM
Wlan.WlanAvailableNetwork[] networks = wlanIface.GetAvailableNetworkList(0);
and this
        /// <summary>
        /// Defines flags passed to <see cref="WlanGetAvailableNetworkList"/>.
        /// </summary>
        [Flags]
        public enum WlanGetAvailableNetworkFlags
        {
            /// <summary>
            /// Include all ad-hoc network profiles in the available network list, including profiles that are not visible.
            /// </summary>
            IncludeAllAdhocProfiles = 0x00000001,
            /// <summary>
            /// Include all hidden network profiles in the available network list, including profiles that are not visible.
            /// </summary>
            IncludeAllManualHiddenProfiles = 0x00000002
        }