How do you specify custom user data?

May 16, 2012 at 4:07 AM

Using function WlanSetProfileCustomUserData from http://msdn.microsoft.com/en-us/library/windows/desktop/ms706822(v=vs.85).aspx

The function doesn't seem to be included in the API.

I was hoping to use the following example for credentials to a wifi profile but can't seem to work it out. Or can i include below in the WLANProfile xml? Any help is appreciated.

<?xml version="1.0" ?>
<EapHostUserCredentials xmlns="http://www.microsoft.com/provisioning/EapHostUserCredentials"
   xmlns:eapCommon="http://www.microsoft.com/provisioning/EapCommon"
   xmlns:baseEap="http://www.microsoft.com/provisioning/BaseEapMethodUserCredentials">
   <EapMethod>
     <eapCommon:Type>26</eapCommon:Type>
     <eapCommon:AuthorId>0</eapCommon:AuthorId>
   </EapMethod>
   <Credentials xmlns:eapUser="http://www.microsoft.com/provisioning/EapUserPropertiesV1"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:baseEap="http://www.microsoft.com/provisioning/BaseEapUserPropertiesV1"
     xmlns:MsPeap="http://www.microsoft.com/provisioning/MsPeapUserPropertiesV1"
     xmlns:MsChapV2="http://www.microsoft.com/provisioning/MsChapV2UserPropertiesV1">
     <baseEap:Eap>
       <baseEap:Type>26</baseEap:Type>
       <MsChapV2:EapType>
         <MsChapV2:Username>test</MsChapV2:Username>
         <MsChapV2:Password>test</MsChapV2:Password>
         <MsChapV2:LogonDomain>ias-domain</MsChapV2:LogonDomain>
       </MsChapV2:EapType>
     </baseEap:Eap>
   </Credentials>
</EapHostUserCredentials>

Cheers,

Shane