/// <summary> /// Adds a profile. /// </summary> /// <param name="flags">The flags to set on the profile.</param> /// <param name="profileXml">The XML representation of the profile.</param> /// <param name="overwrite">Overwrite if a profile of the same name exists?</param> /// <returns>Success (0) or an error, see native reason code identifiers (<c>WLAN_REASON_CODE_xxx</c> identifiers). public int SetProfile(WlanProfileFlags flags, string profileXml, bool overwrite) { int reasonCode; SystemInterface.WlanSetProfile(client.clientHandle, info.interfaceGuid, flags, profileXml, null, overwrite, IntPtr.Zero, out reasonCode); return(reasonCode); }