if(pAvailableNetworkList->Network[i].dot11BssType==2) { cout<<"\nProcess to Connect to adhoc"; WLAN_CONNECTION_PARAMETERS ConnPara; ConnPara.wlanConnectionMode = wlan_connection_mode_discovery_unsecure; ConnPara.strProfile = NULL; DOT11_SSID temp2; temp2.uSSIDLength = pAvailableNetworkList->Network [i].dot11Ssid.uSSIDLength; temp2.ucSSID[temp2.uSSIDLength] = pAvailableNetworkList->Network [i].dot11Ssid.ucSSID[temp2.uSSIDLength]; ConnPara.pDot11Ssid = &temp2; ConnPara.pDesiredBssidList =NULL; ConnPara.dot11BssType = dot11_BSS_type_any; ConnPara.dwFlags = WLAN_CONNECTION_ADHOC_JOIN_ONLY; DWORD temp =WlanConnect( hClientHandle, &interfaceGuid, &ConnPara, NULL ); if(temp == ERROR_SUCCESS) cout<<"\nSuccess"; if(temp == ERROR_INVALID_PARAMETER) cout<<"\nERROR INVALID PARAMETER"; ///I am getting this error }
ASSERT(hClientHanle);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)