RasDisconnect Method

PocketBrowser 3.x API

The RasDisconnect Method of the Generic ActiveX Object disconnects a specified modem/serial connection.

RasDisconnect (Method of the Generic ActiveX Object) Syntax
var iRetVal = objGeneric.RasDisconnect(strEntry);

ParametersW Toggle Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description
Default Value
strEntry String Name of the phone book entry to be terminated N/A

axReturns Toggle Return Values

Name Description
iRetVal The status of the connection, see Remarks

Examples Toggle Examples

The following example disconnects "My Connection" and then displays the connection status:

<OBJECT ID="Generic" CLASSID="CLSID:9928F1E9-B689-4DBA-8B82-E02A7AF76596"></OBJECT>

<script>
objGeneric.RasDisconnect("My Connection");
alert(objGeneric.ConnectionStatus("My Connection"));
</script>
Copy example to clipboard Copy example to clipboard

Remarks Toggle Remarks

Return Values
Possible return values are: Port Open (0x0000), Paused (0x1000), Done (0x2000)


Info Toggle Additional Information

Supported Platforms Windows CE, Windows Mobile
Persistence Runs immediately.
Min. Requirements None.