Very Strange RAS Problem

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
I fixed the problem. It can be a genereal failure in the ras.h. You ms guys should look at it

It worked only, after i inserted #define WINVER 0x500 above the #include declarations

I just found a that posting, after i searched the usenet about WINVER 0x500 and ras..

http://groups.google.com/[email protected]#link

Is it a general failure in the ras.h file? should't it be generic?
 
Back
Top