共用方式為


IWDTFSimulatedBatterySystemAction::D isableSimulatedBattery 方法 (wdtfsimulatedbatterysystemaction.h)

停用模擬電池。

使用此方法可用來停用模擬電池(卸載模擬電池裝置)。 這不會將系統還原為其原始狀態,也必須呼叫 WDTFSimulatedBatterySystemAction::EnableRealBatteries 方法。

語法

HRESULT DisableSimulatedBattery(
  [out, retval] VARIANT_BOOL *pbSuccess
);

參數

[out, retval] pbSuccess

傳回值

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

WDTFSimulatedBatterySystemAction::EnableRealBatteries

要求

要求 價值
最低支援的用戶端 Windows 8.1
支援的最低伺服器 Windows Server 2012 R2
目標平臺 桌面
標頭 wdtfsimulatedbatterysystemaction.h