Hi everyone,
Does anyone has already played with a PocketPC with GSM cellular I’m with a Eten P300B and I’m having some difficults to create and manage DialUp accounts (RasEntry). When I’m creating an Entry trough the Windows Mobile UI, I have to select the "Cellular Line (GPRS)" device and enter a access point name ("tim.br"). I always used the RasGetEntryProperties and RasSetEntryProperties functions to create and manage RasEntry, but I don’t know how to specify value to fill the "Access Point Name" option. If I create the dialup and call the RasDial() function, it connects without problems, but if I need to change user/password or the phone number, the RasEntry seems to be corrupted after calling RasGet.. or RasSet.. functions.
It’s possible to create and mange this kind of RasEntry I’m using EVC 4, PPC2003 SDK.
Thanks in advance.

Problem with setup and use a GPRS RasEntry...
badlydressedboy
Do you know how could I REMOVE a DialUp
best regards,
Thiago
Mystus
I don't have my notes here but I've played with GSM cellular network in PocketPC and Windows Mobile 2003.
Usually I just created the connection using the interface (checking that evering works) and then recalled them through the RAS API.
This way you already have every parameter correctly in place.
If you need to recreate by code this connection you can evaluate alternatives method:
1 - Use the standard WAP provisioning tools included in Windows Mobile 2003 (you create by hand the connection, get the configuration on an XML using... IIRC ... a rapi tools on desktop, don't remember name now). Then you use the XML recalling it with the "DMProcessConfigXML" API.
2 - On some industrial devices (like Symbol) you can put a .reg file with the needed RAS configuration in a flash directory and this will be merged to the system registry at every cold boot (pay attention that with WM03 username and password saved with this method are invalid due to WM03 changind encryption seed every coold boot).
I hope to have helped you and not added confusion... expecially given my english knowledge :^)
ciao
Pietro
khubaib
on this subject you can find a lot of info in the "Pocket PC Network Programming" Book by Steve Makofsky, very recomended.
Back on your question.
To remove an entry from the RAS phonebook, your API is RasDeleteEntry():
From the eVC 3.0 help:
RasDeleteEntry
This function deletes an entry from the phone book.
Parameters
Remarks
Return Values
Zero indicates success. A nonzero RAS error code indicates failure.
Include Raserror.h for definitions of the RAS error codes.
DWORD RasDeleteEntry(LPWSTR lpszPhonebook, LPWSTR
lpszEntry);
Hope that this help.
ciao
Pietro
s3382
Hi Thiago,
I don't understand what you mean with your request... are looking for a method to remove a RasBookEntry or a way to HungUp a RAS connection
Ciao
Pietro
Steven Rosaria - MSFT
I’m using DMProcessConfigXML API to configure a POP3 account in the pOutlook, but to retrieve the configuration on a XML, I need to know the parameters to use with the RAPIConfig tool. Do you know where could I learn more about this
In your second alternative, I don’t think a .reg file will help, but after I created by hand the connection, I searched through the registry for some strings I’ve put in the configuration fields, like "tim.br" and it wasn’t found.
I’ll try to get the configuration by using the rapiconfig tool, but I’m not getting some usefull documentation about how the tool works and how to use it.
best regards,
Thiago
Neil Adams
Hi, Nibble.
Problem with your configuration file:
I cause procedure
HRESULT pRes = DMProcessConfigXML(g_wszGPRSXml, CFGFLAG_PROCESS , &wszOutput);
A parameter wszOutput shows by itself:
<wap-provisioningdoc>
<characteristic type="CM_GPRSEntries">
<characteristic-error type="GPRS_Nibble">
<parm name="DestId" value="{ADB0B001-10B5-3F39-27C6-9742E785FCD4}"/>
<parm name="Phone" value="~GPRS!uni.tim.it"/>
<parm name="UserName" value="nibble"/>
<parm name="Password" value="nibble_pwd"/>
<parm name="DeviceType" value="modem"/>
<parm name="DeviceName" value="Cellular Line"/>
<parm name="Enabled" value="1"/>
<parm name="RequirePw" value="1"/>
</characteristic-error>
</characteristic>
</wap-provisioningdoc>
Zalkalway
To use the RAPIConfig tool you have to build an XML to query the exact parameter.
For GSM, GPRS and Connection Manager I've used the tags:
1)
<wap-provisioningdoc>
<characteristic-query type="CM_GPRSEntries"/>
</wap-provisioningdoc>
2)
<wap-provisioningdoc>
<characteristic-query type="CM_PPPEntries"/>
</wap-provisioningdoc>
3)
<wap-provisioningdoc>
<characteristic-query type="CM_ProxyEntries"/>
</wap-provisioningdoc>
To recreate a GPRS connection on the device you can use something like:
<wap-provisioningdoc>
<characteristic type="CM_GPRSEntries">
<characteristic type="GPRS_Nibble">
<parm name="DestId" value="{ADB0B001-10B5-3F39-27C6-9742E785FCD4}"/>
<parm name="Phone" value="~GPRS!uni.tim.it"/>
<parm name="UserName" value="nibble"/>
<parm name="Password" value="nibble_pwd"/>
<parm name="DeviceType" value="modem"/>
<parm name="DeviceName" value="Cellular Line"/>
<parm name="Enabled" value="1"/>
<parm name="RequirePw" value="1"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Using the right parameters you get from the query.
I hope that this will help.
BTW: Is somewhere available a complete documentation of this tags
Best regards
Pietro
Fabio Gouw
I'm looking for a way to REMOVE (Delete) the RasEntry I've created.
Do you think it's possible have any idea about how
Regards,
Thiago