Our application is trying to be even more simple than the Palm OS itself. In
particular we have hidden the network preference panel and walk our users through the
setup of network settings to arrive at the proper settings. We have a couple of
services that we routinely switch between. Each of these services can use two
different connection settings.
Up till now we have been happily using the unsupported and not-quite-correct
NetServiceAPI library. After making some adjustments and implementing a MdmDial trap
to fix up phone numbers that get corrupted during the use of the NetServiceAPI, we
have managed to get all the behavior we wanted and could change settings and services
and connections at will. However, on devices running 4.1, the NetServiceAPI have been
shut out and calling into that library now returns an incorrect ROM version error.
I got excited as I read through the Palm OS 5 SDK docs when I found the
NetLibConfigXXX functions, however, when I tried to use them I did not get what I
expected and hoped. I was hoping that I could find the index of my "SITESERVICE"
network service, but it appears that the term "Config" does not equal "Service".
If I call NetLibConfigList, the list returned has items like .DefaultWireless,
.DefaultWireline, etc., not the "Earthlink", "SITESERVICE", etc. I was hoping for. I
was hoping I was going to be able to do something like this:
err = SysLibFind("Net.lib", &libRefNum);
StrCopy(name.name, "Unix");
err = NetLibConfigIndexFromName(libRefNum, &name, &index);
err = NetLibConfigMakeActive(libRefNum, index);
But, alas, NetLibConfigIndexFromName returns a config not found error (because the
list it's searching only includes the .DefaultXXX entries described above).
What am I missing here? How can I bridge the gap between the Service names setup in
the network pref panel and the abstract configuration name entries in this table? How
can we programmatically change the active service on > 4.1?
Thanks,
Kevin
------------------------------------------
The information in this transmittal and any attachments is privileged and confidential
and is intended only for the recipient(s) listed above. You are hereby notified that
any unauthorized distribution or copying of this transmittal or its attachments is
prohibited. If you have received this transmittal in error, please notify Invivodata
immediately at (831) 438-9550.
------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/