Share via


SystemState::RestoreAll method

Restores all system settings originally modified through SetBoolean back to their original values.

Syntax

virtual HRESULT RestoreAll() = 0;

Parameters

This method has no parameters.

Return value

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

Remarks

When an assessment calls ManageSystemState a state file is created that stores any SystemSetting values that are modified by SetBoolean. This method restores the original settings as stored in the state file. If an assessment modifies a system setting manually, without using SetBoolean, this method will not restore the original value because it will not have been stored in the state file.

Managed code uses SystemState.RestoreAll 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