The strange thing is, the program works fine under a win98 machine, but not under win2000.
What do you mean, with "initialize RASENTRY structure with zero values and modify fields that you
required to change" ? I already did it:
RASENTRY ras;
ras.dwSize = sizeof(RASENTRY);
RasGetEntryProperties(NULL, "myprovider", &ras, &ras.dwSize, NULL, NULL); //change myprovider to your provider
RasSetEntryProperties(NULL, "newprovider", &ras, ras.dwSize, NULL, NULL);
----- Ashok [MSFT] wrote: -----
Intialize RASENTRY structure with zero values and modify fields that you
required to change, before calling to RasSetEntryProperties().
As RASENTRY structure is not intialized and calling RasSetEntryProperties()
might corrupt the phonebook (relate to that entry).
While trying to get properties of the connectiod, RAS component returns
error, but explorer (network connection folder) is not throwing any error.
So, it does not show anything.
--
Thanks
Ashok
(e-mail address removed)
This posting is provided "AS IS" with no warranties, and confers no rights.