When an error occurs, the Remote Access Connection Manager invokes the client's notification handler. The notification indicates the connection state when the error occurred, and a code that identifies the error. In these cases, the notification handler should call RasHangUp to end the RAS connection.
The error codes that identify RAS errors are defined in the file raserror.h. The RAS client can use the RasGetErrorString function to get a display string describing the error. See Routing and Remote Access Error Codes for a description of these errors.
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
