Property/method | Parameters list | Property type/ method return value | Description | |
RASEngine | the main object of the class; at the initialization, load the RASAPI32.dll, and store all the RAS entries and all the active connections in a couple of internal collections | |||
Properties | ||||
OSVersion | Single | this function return OS type = 0 for Win32, 1 for Win95, 2 for WinNT | ||
OSBuildNumber | Long | |||
OSType | Long | |||
Methods | ||||
RASError | RASError | set up a new pointer to RAS error object | ||
Connections | "Optional ByVal Index as Variant" | Object | if index is missing, set up a pointer to the collection of all the connections active at the RASEng object initialization; if index is passed, set up a pointer to the active connection with this index | |
PhoneEntries | "Optional ByVal Index as Variant" | Object | if index is missing, set up a pointer to the collection of all the Remote Access entries founded at the RASEng object initialization; if index is passed, set up a pointer to the RA entry with this index | |
Connections | this object manipolate the collection of all the active connetions | |||
Properties | ||||
Count | Integer | connections counter | ||
Methods | ||||
AddConnection | strNewPhoneNumber as String strNewCallbackNumber as String strNewUsername as String strNewPassword as String strNewDomain as String boolAsync as Boolean" | Connection | add a new connection, calling the phone number via modem if needed; the boolAsync flag indicate if the program is stopped until the connection is activated (Async = false), or if the program may continue immediatly (Async = true) | |
RemoveConnection | lngIndexToRem | Long | remove (close) the active conection of assigned index | |
Connection | an element in the connections object | |||
Properties | ||||
hRasConn | Long | pointer to the RAS connection structure | ||
EntryName | String | |||
Index | Integer | index of the connection in the active connections list | ||
State | Long | state code | ||
DeviceType | String | |||
DeviceName | String | |||
LANA | Byte | |||
WorkstationName | String | |||
IPXAddress | String | |||
IPAddress | String | |||
PhoneEntries | collection of the Remote Access entries | |||
Properties | ||||
Count | Integer | number of entries founded | ||
Methods | ||||
AddEntry | activate the standard RAS add entry dialog | |||
PhoneEntry | an element in the phoneentries object | |||
Properties | ||||
EntryName | String | |||
PhoneNumber | String | |||
CallbackNumber | String | |||
UserName | String | |||
Password | String | |||
Domain | String | only for network entries | ||
Index | Integer | index of the entry in the entries list | ||
Methods | ||||
DialEntry | "boolAsync as Boolean " | Connection | dial the selected entry; this method recall the AddConnection of the Conns object, passing all parameters from the entry selected | |
EditEntry | activate the standard RAS edit entry dialog | |||
RASError | object for managing RAS errors | |||
Properties | ||||
ErrorNumber | Long | return the RASEngine error code | ||
Description | String | return the RASEngine internal error string | ||
Methods | ||||
fcnRASErrorString | String | return the string associated with the internal RASEngine error code | ||
Clear | reset the RASEngine error code and string |