ApplyVirtualSystemSnapshot method of the CIM_VirtualSystemManagementService class

Applies the disk state, runtime state, and configuration values for a snapshot to the virtual computer system.

Syntax

uint32 ApplyVirtualSystemSnapshot(
  [in] CIM_ComputerSystem           REF ComputerSystem,
  [in] CIM_VirtualSystemSettingData REF SnapshotSettingData
);

Parameters

ComputerSystem [in]

A reference to the CIM_ComputerSystem instance to which the snapshot should be applied.

SnapshotSettingData [in]

A reference to the CIM_VirtualSystemSettingData instance that represents the snapshot to be applied.

Return value

If this method is executed synchronously, it returns 0 if it succeeds. Any other return value indicates an error.

Completed with No Error (0)

Method Parameters Checked - Job Started (4096)

Failed (32768)

Access Denied (32769)

Not Supported (32770)

Status is unknown (32771)

Timeout (32772)

Invalid parameter (32773)

System is in used (32774)

Invalid state for this operation (32775)

Incorrect data type (32776)

System is not available (32777)

Out of memory (32778)

Requirements

Namespace
Root\virtualization
MOF
WindowsVirtualization.mof

See also

CIM_VirtualSystemManagementService