PRB: RasGetErrorString() Returns Unnecessary Information (326025)



The information in this article applies to:

  • Microsoft Windows XP Professional

This article was previously published under Q326025

SYMPTOMS

When you use the RasGetErrorString function on a computer that is running Microsoft Windows XP, the function returns certain error codes that also return the following message with the explanation of the error:
For further assistance, click More Info or search Help and Support Center for this error number.

RESOLUTION

You can safely ignore the extra information.

MORE INFORMATION

To reproduce this problem on a computer that is running Windows XP, run the following sample code:
#include <stdio.h>
#include <windows.h>
#include <ras.h>

#define  ERROR_VAL   718
#define  BUFFER_SIZE 256

main() {
   DWORD dwRetVal;

   UINT  uErrorValue = ERROR_VAL;
   DWORD cBufSize = BUFFER_SIZE;
   CHAR  lpszErrorString[ BUFFER_SIZE ];

   dwRetVal = RasGetErrorString(  uErrorValue, lpszErrorString, cBufSize );

   if( dwRetVal == ERROR_SUCCESS ) {
      printf( "Error %d: %s\n", uErrorValue, lpszErrorString );
   }
   else {
      printf( "RasGetErrorString failed, Return Value: %d", dwRetVal );
   }
}
				

Modification Type:MajorLast Reviewed:2/11/2004
Keywords:kbDSWNET2003Swept kbprb KB326025