IWDTFSimulatedBatterySystemAction::DisableSimulatedBattery method (wdtfsimulatedbatterysystemaction.h)

Disables the simulated battery.

Use this method is used to disable the simulated battery (uninstalls simulated battery device). This does not restore the system to its original state, the WDTFSimulatedBatterySystemAction::EnableRealBatteries method must also be called.

Syntax

HRESULT DisableSimulatedBattery(
  [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.

WDTFSimulatedBatterySystemAction::EnableRealBatteries

Requirements

Requirement Value
Minimum supported client Windows 8.1
Minimum supported server Windows Server 2012 R2
Target Platform Desktop
Header wdtfsimulatedbatterysystemaction.h