I'm using the following code to add my own GPRS RAS entry.

However it's not apearing in the Settings->Connections->Internet Settings
list.

Thanks for any help
Dave


// Setup default RASEntry
RASENTRY RASEntry;
memset( &RASEntry, 0, sizeof(RASEntry) );
RASEntry.dwSize = sizeof(RASEntry);
RASEntry.dwfNetProtocols = 4;
RASEntry.dwFramingProtocol = 1;
wcscpy( RASEntry.szLocalPhoneNumber, TEXT("+0 ~GPRS!pp.vodafone.co.uk") );
wcscpy( RASEntry.szDeviceType, TEXT("modem") );
wcscpy( RASEntry.szDeviceName, TEXT("Cellular Line") );
if ( RasSetEntryProperties( NULL, TEXT("My GPRS"), &RASEntry,
sizeof(RASEntry), NULL, NULL ) != 0 )
MessageBox( NULL, TEXT("Error createing RAS Entry"), TEXT("Error"),
MB_ICONINFORMATION|MB_OK );

RASDIALPARAMS RASDialParams;
memset( &RASDialParams, 0, sizeof(RASDialParams) );
RASDialParams.dwSize = sizeof(RASDialParams);
wcscpy( RASDialParams.szEntryName, TEXT("My GPRS") );
if ( RasSetEntryDialParams( NULL, &RASDialParams, false ) != 0 )
MessageBox( NULL, TEXT("Error createing RAS Dial Params"), TEXT("Error"),
MB_ICONINFORMATION|MB_OK );

Re: GPRS RAS entry not apearing in Internet Settings List by Trevor

Trevor
Fri Feb 06 13:26:31 CST 2004

"David Burrows" <dave@burrows001.fsnet.co.uk> wrote in message
news:eyy8PaI7DHA.3008@TK2MSFTNGP09.phx.gbl...
> I'm using the following code to add my own GPRS RAS entry.
>
> However it's not apearing in the Settings->Connections->Internet Settings
> list.
>
> Thanks for any help
> Dave
>
>
> // Setup default RASEntry
> RASENTRY RASEntry;
> memset( &RASEntry, 0, sizeof(RASEntry) );
> RASEntry.dwSize = sizeof(RASEntry);
> RASEntry.dwfNetProtocols = 4;
> RASEntry.dwFramingProtocol = 1;
> wcscpy( RASEntry.szLocalPhoneNumber, TEXT("+0
~GPRS!pp.vodafone.co.uk") );
> wcscpy( RASEntry.szDeviceType, TEXT("modem") );
> wcscpy( RASEntry.szDeviceName, TEXT("Cellular Line") );
> if ( RasSetEntryProperties( NULL, TEXT("My GPRS"), &RASEntry,
> sizeof(RASEntry), NULL, NULL ) != 0 )
> MessageBox( NULL, TEXT("Error createing RAS Entry"), TEXT("Error"),
> MB_ICONINFORMATION|MB_OK );
>
> RASDIALPARAMS RASDialParams;
> memset( &RASDialParams, 0, sizeof(RASDialParams) );
> RASDialParams.dwSize = sizeof(RASDialParams);
> wcscpy( RASDialParams.szEntryName, TEXT("My GPRS") );
> if ( RasSetEntryDialParams( NULL, &RASDialParams, false ) != 0 )
> MessageBox( NULL, TEXT("Error createing RAS Dial Params"),
TEXT("Error"),
> MB_ICONINFORMATION|MB_OK );
>
>
David,
As of PPC2002, RAS entries do not automatically show up in "Connection
Manager". You need to add them yourself. There is a problem with this;
Microsoft has yet to release an API to do this. You have to dig around the
registry and figure out what keys/values to add and do it yourself.



Re: GPRS RAS entry not apearing in Internet Settings List by Shriram

Shriram
Fri Feb 06 17:56:53 CST 2004

For 03 look in the SDK docs under the topic
"Configuring the Connection Manager"

There is sample code too that is included.


--
Thanks,
Shriram Najundaiah
Microsoft Corporation, Mobile Devices

This posting is provided AS IS with no warranties and confers no rights.



"David Burrows" <dave@burrows001.fsnet.co.uk> wrote in message
news:eyy8PaI7DHA.3008@TK2MSFTNGP09.phx.gbl...
> I'm using the following code to add my own GPRS RAS entry.
>
> However it's not apearing in the Settings->Connections->Internet Settings
> list.
>
> Thanks for any help
> Dave
>
>
> // Setup default RASEntry
> RASENTRY RASEntry;
> memset( &RASEntry, 0, sizeof(RASEntry) );
> RASEntry.dwSize = sizeof(RASEntry);
> RASEntry.dwfNetProtocols = 4;
> RASEntry.dwFramingProtocol = 1;
> wcscpy( RASEntry.szLocalPhoneNumber, TEXT("+0
~GPRS!pp.vodafone.co.uk") );
> wcscpy( RASEntry.szDeviceType, TEXT("modem") );
> wcscpy( RASEntry.szDeviceName, TEXT("Cellular Line") );
> if ( RasSetEntryProperties( NULL, TEXT("My GPRS"), &RASEntry,
> sizeof(RASEntry), NULL, NULL ) != 0 )
> MessageBox( NULL, TEXT("Error createing RAS Entry"), TEXT("Error"),
> MB_ICONINFORMATION|MB_OK );
>
> RASDIALPARAMS RASDialParams;
> memset( &RASDialParams, 0, sizeof(RASDialParams) );
> RASDialParams.dwSize = sizeof(RASDialParams);
> wcscpy( RASDialParams.szEntryName, TEXT("My GPRS") );
> if ( RasSetEntryDialParams( NULL, &RASDialParams, false ) != 0 )
> MessageBox( NULL, TEXT("Error createing RAS Dial Params"),
TEXT("Error"),
> MB_ICONINFORMATION|MB_OK );
>
>