I guess you should use the Ap... utilities. These are for access point (AP) maintenance (AFAIK) and you can find them under \epoc32\include. I don't know if they're really useful, but at least you should have a look at e.g. ApDataHandler.h.
tOtE
Here is the code to get all access points
2003-04-25, 10:16#4
TBuf<100> ms;
//This code is to read the IP address and all
datHand->AccessPointDataL(id,*ap);
ap->ReadTextL(EApWapGatewayAddress,ms); //put appropriate constants to read rest of info like user name...
bRet = ( Name.Compare(comp) == 0 );
//serach for a particular access point
if(Name.Compare(comp) == 0 )
{
TBool read;
read=ap->IsReadOnly();
if(!read)
datHand->SetAsDefaultL(id,EIspTypeInternetOnly); //EIspTypeInternetAndWAP
}
Name.Zero();
}
while ( apSelect->MoveNext() && !bRet);
thank you for your code, it's really useful for me but I have a problem. Maybe it's a stupid question but I can't resolve it. I copy the code and when I try to compile I get:
undefined reference to 'CApListItemList::CApListItemList(void)'
...
relocation truncated to fit:ARM_26 CApListItemList::CApListItemList(void)
I've included commdb.h, ApListItemList.h, ApSelect.h, ApAccessPointItem.h, ApDataHandler.h and linked against commdb.lib.