Share via


IMSVidDevice::put_Power Method

This topic applies to Windows XP or later.
The put_Power method turns the device on or off.

Syntax

HRESULT put_Power(
  [in]  VARIANT_BOOL Power
);

Parameters

  • Power [in]
    Specifies whether to turn the power on or off. Use one of the following values.

    Value Description
    VARIANT_TRUE Turn the device on.
    VARIANT_FALSE Turn the device off.

Return Value

Returns an HRESULT value. Possible values include the following.

Return code Description

S_OK

Success.

E_NOTIMPL

Not implemented.

Remarks

Not all device types implement this method.

Requirements

Header Declared in Dshow.h.
DLL Requires Quartz.dll.

See Also

IMSVidDevice::get_Power
IMSVidDevice Interface

Send comments about this topic to Microsoft

Build date: 12/4/2008