RAS Function Reference

sRASGetParams

RAS Function Reference

This function retrieves the stored username, password and domain fror the specified connection.

<DllImport("SapphireRAS.dll")> _
Public Function sRASGetParams(ByVal sEntryName As String, ByVal sRASNames As String) As Integer
End Function

Parameters

  sEntryName
    A string specifying the connection entry name.
  sRASNames
    A string variable used to store the details for the connection. It will store the username, password and domain separated by a bar (|) character. If the phone book was not found the function returns a string stating 'No Phone Book Entry'.

Return Values

  Returns a number indicating success or failure where 0 is successful. Use sRASErrMsg to get a string version of the error message.