C# Class Microsoft.Tools.WindowsInstaller.SystemRestoreTestService

Service provider used for testing system restore points without actually creating them (requires elevation).
Inheritance: ISystemRestoreService
Show file Open project: heaths/psmsi Class Usage Examples

Private Properties

Property Type Description
SetNextErrorCode void
SystemRestoreTestService

Public Methods

Method Description
SetRestorePoint ( RestorePointInfo info, StateManagerStatus &status ) : bool

Creates or modifies the system restore point.

The error code is reset to 0 (success) after each call.

Private Methods

Method Description
SetNextErrorCode ( int errorCode ) : void

Sets the next error code.

SystemRestoreTestService ( long sequenceNumber = 1 )

Creates a new instance of the test ISystemRestoreService provider.

Method Details

SetRestorePoint() public method

Creates or modifies the system restore point.
The error code is reset to 0 (success) after each call.
public SetRestorePoint ( RestorePointInfo info, StateManagerStatus &status ) : bool
info RestorePointInfo Information about the restore point to create or modify.
status StateManagerStatus Status information of the restore point created or modified.
return bool