[DllImport("Wlanapi.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern uint WlanGetProfile(IntPtr hClientHandle,ref Guid pInterfaceGuid,string strProfileName,IntPtr pReserved,ref string pstrProfileXml,ref uint pdwFlags,ref uint pdwGrantedAccess);
Declare Function WlanGetProfile Lib "wlanapi.dll" (TODO) As TODO
None.
Do you know one? Please contribute it!
None.
Please add some!
//Profile list
IntPtr ppProfileList = new IntPtr();
result = WlanGetProfileList(ClientHandle, ref pInterfaceGuid, new IntPtr(), ref ppProfileList);
WLAN_PROFILE_INFO_LIST wlanProfileInfoList = new WLAN_PROFILE_INFO_LIST(ppProfileList);
//Profile description
uint pdwFlags = 0, pdwGrantedAccess = 0;
for (int i = 0; i < wlanProfileInfoList.dwNumberOfItems; i++)
{
pdwFlags = 0;
pdwGrantedAccess = 0;
string strProfileName = wlanProfileInfoList.ProfileInfo[i].strProfileName, pstrProfileXml = null;
WlanGetProfile(ClientHandle, ref pInterfaceGuid, strProfileName, new IntPtr(), ref pstrProfileXml, ref pdwFlags, ref pdwGrantedAccess);
}