ClusterSharedVolumeSetSnapshotState function (clusapi.h)

Updates the state of a snapshot of a cluster shared volume.


DWORD ClusterSharedVolumeSetSnapshotState(
  [in] GUID                                 guidSnapshotSet,
  [in] LPCWSTR                              lpszVolumeName,


[in] guidSnapshotSet

The GUID of the snapshot.

[in] lpszVolumeName

A pointer to the name of the cluster shared volume.

[in] state

A CLUSTER_SHARED_VOLUME_SNAPSHOT_STATE enumeration value that specifies the state of the snapshot.

Return value

If the operation succeeds, the function returns a resource handle.

If the operation fails, the function returns NULL. For more information about the error, call GetLastError.


Minimum supported client None supported
Minimum supported server Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise
Target Platform Windows
Header clusapi.h
Library ClusAPI.lib
DLL ClusAPI.dll

See also

Failover Cluster Resource Management Functions