Getting and maintaining an Internet Connection - The Answer

Well, here's the deal.

I have a game built where 2 PPCs exchange moves through a server.
So far, so good.
The problem is that on some of my test devices need to make a psedo modem
connection (one is an AV6600 on Sprint).

I need to do what Internet Explorer does, dial and then keep the connection open.

The way I test now is to bring up IE and then I have 10 minutes of testing
before the connection shuts down, unless I go to IE and hit another site.
What I really need to do is find out the Connection to use (Work, Internet...)
and then connect and then keep it open.
Am wondering what IE does to find the network info, connect and then keep the
connection open (flag, timer somewhere)

I am on VS 2005 Beta 2 developing for WM2003.

Thanks.

[789 byte] By [Jraven] at [2007-12-16]
# 1
You might want to investigate the RAS (Remote Access Services) mechanism. You can use this to create a GPRS connection which will stick around for longer.
RobMiles at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 2

And the answer is...

The Connection Manager

(excerpts from the Docs)

The connection manager is a centralized location to request a connection to external data networks regardless of the connection method. The connection manager presents both a single point of connection configuration to the user and a single place where applications can go to programmatically connect to the network. The connection manager also frees the application from having to know what connections are the best to use given the different costs and speeds of the various connections. For example, the connection manager knows it’s better to access the Internet via ActiveSync if possible instead of connecting via a cellular connection.

Connection Manager relieves the user of the burden of identifying which connection to use. Users experience a seamless network connection process because the network settings have already been set in one central location; there is no need to present users with an interface requesting the selection of a connection type. Connection Manager determines the most appropriate connection to make based on the preconfigured connection types.

The connection paradigm has changed from prompting users for connection information to a more simple principle: If Pocket Internet Explorer can establish a connection to the Internet, any third-party application can also establish a connection.
This is just what I was looking for. I hope this helps anyone who might be looking for this in the future.
There is an MFC Pocket PC sample in Windows CE Tools (cmhelper).

Jraven at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices General...