OverCurrent Property

The OverCurrent property indicates whether the port has an over-current condition. Use the OverCurrentChange property to determine whether there has been a change in the value of the OverCurrent property.

This property is read/write.

Syntax

HRESULT put_OverCurrent(
  [in]           VARIANT_BOOL fvarOverCurrent
);

HRESULT get_OverCurrent(
  [out, retval]  VARIANT_BOOL *pfvarOverCurrent
);

Property Value

The new over-current status for the port.

Error Codes

OverCurrent returns an HRESULT value.

Examples

The following VBScript code example shows how to set and get the OverCurrent property.

Dim SoftEHCICtrlr
Set SoftEHCICtrlr = CreateObject("SOFTEHCI.SoftECHICtrlr")

' Get the port collection
Dim PortCollection 
Set PortCollection = SoftEHCICtrlr.Ports

' Read the second port
Dim Port
Set Port = PortCollection(2)

` Get the OverCurrent property
Dim OverCurrent 
OverCurrent = Port.OverCurrent

 `If the port is over current. reset it
If OverCurrent == TRUE Then
 Port.OverCurrent = FALSE;
End If

Requirements

Header

SoftEHCIIf.h

See Also

ISoftEHCIRootHubPort

OverCurrent

 

 

Send comments about this topic to Microsoft

Build date: 9/21/2010