Microsoft DirectX 9.0 |
This topic applies to Windows XP only.
The get_Power method queries whether the device is off or on.
Syntax
HRESULT get_Power(
VARIANT_BOOL* pPower
);
Parameters
pPower
[out] 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 Values
Returns an HRESULT value. Possible values include the following.
Value | Description |
S_OK | Success. |
E_NOTIMPL | Not implemented. |
E_POINTER | NULL pointer argument. |
Remarks
Not all device types implement this method.
See Also