次の方法で共有


SystemState::SetBoolean method

Sets specified system settings.

Syntax

virtual HRESULT SetBoolean(
  [in] SystemSetting setting,
  [in] BOOL          enable
) = 0;

Parameters

setting [in]

The SystemSetting enumerator specifying which system setting to set. The enumerator must have the SystemSettingFlagSetBoolFalse or SystemSettingFlagSetBoolFalse bit set in it depending on the value of enabled passed in.

enable [in]

True if the specified setting is to be set to enable.

Return value

If the function succeeds, it returns S_OK. If it fails, it returns an error value.

Remarks

When an assessment calls this method, the original value is stored in the state file that was created by ManageSystemState when this SystemState object was created. If the value of enabled does not match the SystemSettingFlagSetBoolFalse or SystemSettingFlagSetBoolTrue values in the SystemSetting bits set in the setting enumerator, an error will be returned.

Managed code uses SystemState.SetBoolean method.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
AxeRuntime.h
DLL
AxeCore.dll

See also

SystemState