RasGetConnectStatus Function



Hi there!
I want to retrive the status of PPPoE connection after a synchronous
RasDial() operation. I used RasGetConnectStatus . On a NOT CONNECTED
scenario, the dwError in RASCONNSTATUS structure shows up error code 679 - NO
CARRIER. where as the actual problem is WRONG USER NAME PASSWORD combination.
It should have given AUTHENTICATION error instead of error code 679. Can
anyone throw some light on what I could be doing wrong or whats wrong with
RasGetConnectStatus ?

Thanks
.