IAMExtDevice::get_DevicePower method (strmif.h)
get_DevicePower method retrieves the external device's power mode.
HRESULT get_DevicePower( [out] long *pPowerMode );
Pointer to a long integer that receives one of the following values, indicating the device's power mode.
|ED_POWER_OFF||Power is off.|
|ED_POWER_ON||Power if on.|
|ED_POWER_STANDBY||Device is in standby mode.|
When this method succeeds, it returns S_OK. Otherwise it returns an HRESULT error code.
In Windows XP Service Pack 2 and later, the following additional power mode is defined.
|ED_POWER_DEVICE_DEPENDENT||Power is on with limited functions.|
To use this constant, include the header file Xprtdefs.h.MSDV and UVC drivers return ED_POWER_ON when the camcorder is on. If the camcorder is off or in standby mode, the DV driver is not loaded, so this method is not available. If the camcorder is removed unexpectedly, the method can return ERROR_GEN_FAILURE.
MSTape supports both ED_POWER_OFF and ED_POWER_ON, but not ED_POWER_STANDBY.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||strmif.h (include Dshow.h)|