コード例 #1
0
            /// <summary>XML specification of an existing profile</summary>
            /// <param name="profileName">The name of the profile.</param>
            /// <returns>The XML document.</returns>
            public string GetProfileXml(string profileName)
            {
                IntPtr           profileXmlPtr;
                WlanProfileFlags flags = WlanProfileFlags.GetPlaintextKey;
                int grantedAccess;

                SystemInterface.WlanGetProfile(client.clientHandle, info.interfaceGuid, profileName, IntPtr.Zero,
                                               out profileXmlPtr, out flags, out grantedAccess);

                return(Marshal.PtrToStringUni(profileXmlPtr));
            }