ClusterSharedVolumeSetSnapshotState function

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

Syntax


HRESOURCE WINAPI ClusterSharedVolumeSetSnapshotState(
  _In_  GUID guidSnapshotSet,
  _In_  LPCWSTR lpszVolumeName,
  _In_  CLUSTER_SHARED_VOLUME_SNAPSHOT_STATE state
);

typedef DWORD (WINAPI *PCLUSAPI_SHARED_VOLUME_SET_SNAPSHOT_STATE)(
    _In_  GUID guidSnapshotSet,
    _In_  LPCWSTR lpszVolumeName,
    _In_  CLUSTER_SHARED_VOLUME_SNAPSHOT_STATE state
);

Parameters

guidSnapshotSet [in]

The GUID of the snapshot.

lpszVolumeName [in]

A pointer to the name of the cluster shared volume.

state [in]

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.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise

Header

ClusAPI.h

Library

ClusAPI.lib

DLL

ClusAPI.dll

See also

Failover Cluster Resource Management Functions

 

 

Show:
© 2014 Microsoft