 |
|
 |
|
Next: Active Sync USB Connection Problem
|
| Author |
Message |
External

Since: Jan 16, 2009 Posts: 5
|
(Msg. 1) Posted: Thu Jan 22, 2009 2:26 pm
Post subject: GPRS with Connection Manager and DMProcessConfigXML Archived from groups: microsoft>public>pocketpc>developer>networking (more info?)
|
|
|
Hi folks.
I tried getting a GPRS connection created and used programatically without
touching the Connection Manager, but couldn't get it done. So I decided to
learn something about the Connection Manager learned about the
DMProcessConfigXML.
Using it with CM_GPRSEntries and CM_Planner, I managed to create a GPRS
connection using the IID_DestNetInternet network and made it the preferred
connection for the said network. And finally, I connect with
ConnMgrEstablishConnectionSync.
However, this only works if the IID_DestNetInternet network (usually known
as Internet or My ISP) is selected to be used by applications on the
Connection Manager.
If another network is selected (like "My Work Network") the connection fails.
Is there a way to programatically (this includes xml) to select the network
to be used at runtime?
Or better, is there a way to just ask the Connection Manager to use the
params I want (apn, username...), instead of having the trouble of changing
the device's configuration?
Thanks in advance. |
|
| Back to top |
|
 |  |
External

Since: Jan 16, 2009 Posts: 5
|
(Msg. 2) Posted: Fri Jan 23, 2009 6:36 am
Post subject: RE: GPRS with Connection Manager and DMProcessConfigXML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Just to clarify, I want to select the preferred network (Connections >
Advanced > Select Networks), not the preferred connection of a network.
And a little update:
I tried using CM_Mappings to map a dummy url to a network and see if
ConnMgrMapURL would ignore the selected network and find my connection, but
it didn't work.
I'll start poking the registry...
"Fabio Sobral" wrote:
> Hi folks.
>
> I tried getting a GPRS connection created and used programatically without
> touching the Connection Manager, but couldn't get it done. So I decided to
> learn something about the Connection Manager learned about the
> DMProcessConfigXML.
> Using it with CM_GPRSEntries and CM_Planner, I managed to create a GPRS
> connection using the IID_DestNetInternet network and made it the preferred
> connection for the said network. And finally, I connect with
> ConnMgrEstablishConnectionSync.
> However, this only works if the IID_DestNetInternet network (usually known
> as Internet or My ISP) is selected to be used by applications on the
> Connection Manager.
> If another network is selected (like "My Work Network") the connection fails.
>
> Is there a way to programatically (this includes xml) to select the network
> to be used at runtime?
> Or better, is there a way to just ask the Connection Manager to use the
> params I want (apn, username...), instead of having the trouble of changing
> the device's configuration?
>
> Thanks in advance. |
|
| Back to top |
|
 |  |
External

Since: Jan 16, 2009 Posts: 5
|
(Msg. 3) Posted: Fri Jan 23, 2009 10:54 am
Post subject: RE: GPRS with Connection Manager and DMProcessConfigXML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Nevermind.
Finally made it with CM_ProxyEntries.
"Fabio Sobral" wrote:
> Just to clarify, I want to select the preferred network (Connections >
> Advanced > Select Networks), not the preferred connection of a network.
>
> And a little update:
> I tried using CM_Mappings to map a dummy url to a network and see if
> ConnMgrMapURL would ignore the selected network and find my connection, but
> it didn't work.
>
> I'll start poking the registry...
>
>
> "Fabio Sobral" wrote:
>
> > Hi folks.
> >
> > I tried getting a GPRS connection created and used programatically without
> > touching the Connection Manager, but couldn't get it done. So I decided to
> > learn something about the Connection Manager learned about the
> > DMProcessConfigXML.
> > Using it with CM_GPRSEntries and CM_Planner, I managed to create a GPRS
> > connection using the IID_DestNetInternet network and made it the preferred
> > connection for the said network. And finally, I connect with
> > ConnMgrEstablishConnectionSync.
> > However, this only works if the IID_DestNetInternet network (usually known
> > as Internet or My ISP) is selected to be used by applications on the
> > Connection Manager.
> > If another network is selected (like "My Work Network") the connection fails.
> >
> > Is there a way to programatically (this includes xml) to select the network
> > to be used at runtime?
> > Or better, is there a way to just ask the Connection Manager to use the
> > params I want (apn, username...), instead of having the trouble of changing
> > the device's configuration?
> >
> > Thanks in advance. |
|
| Back to top |
|
 |  |
External

Since: Feb 11, 2009 Posts: 1
|
(Msg. 4) Posted: Wed Feb 11, 2009 11:32 pm
Post subject: RE: GPRS with Connection Manager and DMProcessConfigXML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi Fabio ,
I have entered 3 entries for access points in connection
settings in device .And trying to choose one entry .
In my case DMProcessConfigXML returns S_OK .But the access point is not
getting selected.
Because when I try ConnMgrEstablishConnectionSync it attempts connection
with wrong access point.
Can you please pinpoint where I am going wrong?
"Fabio Sobral" wrote:
> Hi folks.
>
> I tried getting a GPRS connection created and used programatically without
> touching the Connection Manager, but couldn't get it done. So I decided to
> learn something about the Connection Manager learned about the
> DMProcessConfigXML.
> Using it with CM_GPRSEntries and CM_Planner, I managed to create a GPRS
> connection using the IID_DestNetInternet network and made it the preferred
> connection for the said network. And finally, I connect with
> ConnMgrEstablishConnectionSync.
> However, this only works if the IID_DestNetInternet network (usually known
> as Internet or My ISP) is selected to be used by applications on the
> Connection Manager.
> If another network is selected (like "My Work Network") the connection fails.
>
> Is there a way to programatically (this includes xml) to select the network
> to be used at runtime?
> Or better, is there a way to just ask the Connection Manager to use the
> params I want (apn, username...), instead of having the trouble of changing
> the device's configuration?
>
> Thanks in advance. |
|
| Back to top |
|
 |  |
External

Since: Mar 23, 2009 Posts: 1
|
(Msg. 5) Posted: Mon Mar 23, 2009 2:58 am
Post subject: RE: GPRS with Connection Manager and DMProcessConfigXML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
see the follwoing link
http://social.msdn.microsoft.com/Forums/en-US/windowsmobiledev/thread/...3eee5-a
"menu at bottom with MFC" wrote:
> Hi Fabio ,
>
>
> I have entered 3 entries for access points in connection
> settings in device .And trying to choose one entry .
> In my case DMProcessConfigXML returns S_OK .But the access point is not
> getting selected.
> Because when I try ConnMgrEstablishConnectionSync it attempts connection
> with wrong access point.
> Can you please pinpoint where I am going wrong?
>
>
>
> "Fabio Sobral" wrote:
>
> > Hi folks.
> >
> > I tried getting a GPRS connection created and used programatically without
> > touching the Connection Manager, but couldn't get it done. So I decided to
> > learn something about the Connection Manager learned about the
> > DMProcessConfigXML.
> > Using it with CM_GPRSEntries and CM_Planner, I managed to create a GPRS
> > connection using the IID_DestNetInternet network and made it the preferred
> > connection for the said network. And finally, I connect with
> > ConnMgrEstablishConnectionSync.
> > However, this only works if the IID_DestNetInternet network (usually known
> > as Internet or My ISP) is selected to be used by applications on the
> > Connection Manager.
> > If another network is selected (like "My Work Network") the connection fails.
> >
> > Is there a way to programatically (this includes xml) to select the network
> > to be used at runtime?
> > Or better, is there a way to just ask the Connection Manager to use the
> > params I want (apn, username...), instead of having the trouble of changing
> > the device's configuration?
> >
> > Thanks in advance. |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|