Ely Invitado
|
Publicado: Mie 09 Mar, 2005 11:18 am Asunto: RasGetEntryProperties |
|
|
Alguien me puede decir porque no funciona el guardar ni el cargar
los valores
TheRasEntry.dwRedialCount
TheRasEntry.dwRedialPause
en cambio si funciona el telefono
este es mi codigo
DWORD a = 0;
DWORD b = 0;
int j = RasGetEntryProperties(NULL,NULL,0,&a,0,0);
int k = RasGetEntryProperties(NULL,NombreConexion.c_str(),0,&b,0,0);
TheRasEntry.dwSize = a;
int n = RasGetEntryProperties(NULL,NombreConexion.c_str(),&TheRasEntry,&b,0,0);
// if (n!=0) loggerGsm("Error Leyendo Properties de Conexion GSM ");
TheRasEntry.dwRedialCount = 8;
TheRasEntry.dwRedialPause = 15;
DWORD fRet;
DWORD g = sizeof(TheRasEntry);
fRet = RasSetEntryProperties(NULL,NombreConexion.c_str() ,&TheRasEntry, g, NULL, 0);
if (fRet != 0)
throw Exception("Error :: RasSetEntryProperties"); |
|