Very Strange RAS Problem

A

Ashok [MSFT]

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.
 
G

Guest

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.
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top