Share via


OperatingSpeed Property

The OperatingSpeed property gets the operating speed for a device.

This property is read-only.

Syntax

HRESULT get_OperatingSpeed(
  [out, retval]  SoftUSBHubSpeed *pSpeed
);

Property Value

Caller-allocated space to hold a pointer to a SoftUSBHubSpeed enumeration value that identifies the operating speed for the device.

Error Codes

OperatingSpeed returns S_OK if the operation succeeds.

Remarks

The following C++ code example shows how to get the OperatingSpeed property.

HRESULT CLoopBackDevice::IsDeviceHighSpeed(BOOL *fIsHighSpeed)
{
HRESULT hr = S_OK;
SoftUSBHubSpeed  Speed = SoftUSBHubNotConnected;


 if (NULL == fIsHighSpeed)
{
 hr = E_POINTER;
 goto Exit;
}

// Initialize the return value
*fIsHighSppeed = FALSE;

 hr = m_piSoftUSBDevice->get_OperatingSpeed(&Speed);
 if(FAILED(hr))
 goto Exit;

 if(SoftUSBHubSpeedHigh == Speed)
{
  *fIsHighSpeed = TRUE;
}
Exit:
 return hr;
}

Requirements

Header

SoftUSBif.h

See Also

ISoftUSBDevice

SoftUSBHubSpeed

 

 

Send comments about this topic to Microsoft

Build date: 9/21/2010