RnaSessGetErrorString
This function is called when Dial-Up Networking wants to get the displayable error string for the messages resource ID returned to Dial-Up Networking in the RnaComplete call. The overlaying SMM should do the following during this function.
- If the overlaying SMM passes a message resource ID when it makes the RnaComplete call to Dial-Up Networking, it needs to return its own error string corresponding to the message ID.
- If the overlaying SMM does not call RnaComplete, it means the overlaid SMM fails the session and calls RnaComplete, the overlaying should try to get the RnaSessGetErrorString entry point from the overlaid SMM and do the following:
- If the RnaSessGetErrorString entry point exists, it should call the entry point and passes the return information from the overlaid SMM to Dial-Up Networking.
- If the RnaSessGetErrorString entry point does not exist, it should use LoadString to get the error string from the overlaid SMM.
In the sample, the overlaying SMM does not own any error string/message ID. If this function is called it means that the SMM for PPP fails the session configuration and passes a message resource ID when it calls RnaComplete to Dial-Up Networking.