Rantic
March 19th, 2004, 10:00 AM
hi,
when im using RasEnumConnections() on windows 98 it always returns an error of INVALID_BUFFER (610), when i define WINVER as 0x0401 or more, but if i define it as less than 0x0401 or dont define it all i get no error. The problem is that i need to have WINVER greater than 0x0400, because i need to use RasConnectionNotification() which wont work unless WINVER is greater then 0x0400.
It says on msdn that RasConnectionNotification works with windows98, so i dont understand why it shouldnt work on my Windows98 computer.
At the top of my code i define the RASCONN structure and its members.
RASCONN rc;
DWORD numConns;
DWORD size;
DWORD res;
then inside winMain i use the function like this :
rc.dwSize = sizeof(RASCONN);
size = sizeof(rc);
res = RasEnumConnections(&rc, &size, &numConns);
this all works fine without any error when WINVER < 0x0401, but returns the invalid buffer when WINVER >= 0x0401, (res=610).
I dont think theres ne thing wrong with how im using the ras function.
ne1 have any ideas whats wrong?
thanks
r
when im using RasEnumConnections() on windows 98 it always returns an error of INVALID_BUFFER (610), when i define WINVER as 0x0401 or more, but if i define it as less than 0x0401 or dont define it all i get no error. The problem is that i need to have WINVER greater than 0x0400, because i need to use RasConnectionNotification() which wont work unless WINVER is greater then 0x0400.
It says on msdn that RasConnectionNotification works with windows98, so i dont understand why it shouldnt work on my Windows98 computer.
At the top of my code i define the RASCONN structure and its members.
RASCONN rc;
DWORD numConns;
DWORD size;
DWORD res;
then inside winMain i use the function like this :
rc.dwSize = sizeof(RASCONN);
size = sizeof(rc);
res = RasEnumConnections(&rc, &size, &numConns);
this all works fine without any error when WINVER < 0x0401, but returns the invalid buffer when WINVER >= 0x0401, (res=610).
I dont think theres ne thing wrong with how im using the ras function.
ne1 have any ideas whats wrong?
thanks
r