Condividi tramite


IMSVidDevice::get_Power method (segment.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

The get_Power method queries whether the device is off or on.

Syntax

HRESULT get_Power(
  [out] VARIANT_BOOL *Power
);

Parameters

[out] Power

Pointer to a variable that receives one of the following values.

Value Description
VARIANT_TRUE The device is on.
VARIANT_FALSE The device is off.

Return value

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK
Success.
E_NOTIMPL
Not implemented.
E_POINTER
NULL pointer argument.

Remarks

Not all device types implement this method.

Requirements

Requirement Value
Minimum supported client Windows�XP [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header segment.h (include Msvidctl.h)

See also

IMSVidDevice Interface

IMSVidDevice::put_Power