共用方式為


IBasicDevice::ConnectionStatus method

Returns an enumeration value indicating whether the device is currently on-line, off-line or sleeping but wakeable.

Syntax

HRESULT ConnectionStatus(
  [out] ConnectionStatus *value
);

Parameters

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK

The method succeeded.

 

See also

IBasicDevice