IWDTFSimulatedBatterySystemAction::EnableRealBatteries method (wdtfsimulatedbatterysystemaction.h)

Enables real batteries if they are present in the system.

Use this method to enable real batteries if they are present in the system. If no real batteries are present, this method does nothing. This method should be called when disabling the simulated battery in order to return the system to its original state.

Syntax

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

Requirements

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