Obtains the entire snapshot tree for the specified virtual disk.
PRL_RESULT PrlDisk_GetSnapshotsTree( const PRL_HANDLE Handle, PRL_SNAPSHOT_ELEMENT_PTR pSnapshotTree, PRL_UINT32_PTR BufferSize );
PrlDisk.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid argument values.
PRL_ERR_SUCCESS - function completed successfully.
A virtual disk snapshot is created when a snapshot of a virtual machine is created or manually using the PrlDisk_CreateState function. Each snapshot is identified using a universally unique ID (UUID). Snapshots of a given virtual disk are organized into a tree. You can use the PrlDisk_GetSnapshotsTree function to obtain the entire tree and then traverse it to obtain the UUID of a snapshot of interest. When you know the snapshot UUID, you can revert to it or delete it if needed.