IWDTFSimulatedBatterySystemAction::EnableSimulatedBattery method (wdtfsimulatedbatterysystemaction.h)
Enables the simulated battery.
Use this method to enable the simulated battery (installs simulated battery device). This does not guarantee the ability to simulate DC by itself, the IWDTFSimulatedBatterySystemAction::DisableRealBatteries method must also be called in order to guarantee a real battery doesn't interfere with the simulation.
Syntax
HRESULT EnableSimulatedBattery(
[out, retval] VARIANT_BOOL *pbSuccess
);
Parameters
[out, retval] pbSuccess
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
IWDTFSimulatedBatterySystemAction::DisableRealBatteries
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 |
Minimum supported server | Windows Server 2012 R2 |
Target Platform | Desktop |
Header | wdtfsimulatedbatterysystemaction.h |