RAS Function Reference

sRASCurrentConn

RAS Function Reference

This function retrieves the name and handle to the current connection on the device.

<DllImport("SapphireRAS.dll")> _
Public Function sRASCurrentConn(ByRef hRasConn As Integer, ByVal sConnName As String) As Integer
End Function

Parameters

  hRasConn
    An integer variable used to store a handle to the current connection.
  sConnName
    A string variable used to store the name of the current connection.

Return Values

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