Mensaje    Asunto: RasGetEntryProperties Responder citando

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");