IVssHardwareSnapshotProviderEx::OnLunStateChange method (vsprov.h)
The VSS service calls this method to notify hardware providers of a LUN state change.
Syntax
HRESULT OnLunStateChange(
[in] VDS_LUN_INFORMATION *pSnapshotLuns,
[in] VDS_LUN_INFORMATION *pOriginalLuns,
[in] DWORD dwCount,
[in] DWORD dwFlags
);
Parameters
[in] pSnapshotLuns
A pointer to an array of dwCount VDS_LUN_INFORMATION structures, one for each LUN that contributes to the shadow copy volume.
[in] pOriginalLuns
A pointer to an array of dwCount VDS_LUN_INFORMATION structures, one for each LUN that contributes to the original volume.
[in] dwCount
Number of elements in the pSnapshotLuns array. This is also the number of elements in the pOriginalLuns array.
[in] dwFlags
A bitmask of _VSS_HARDWARE_OPTIONS flags that provide information about the state change that the shadow copy LUNs have undergone. The following table describes how each flag is used in this parameter.
Return value
This method can return one of these values.
Return code/value | Description |
---|---|
|
The operation was successfully completed. |
|
Out of memory or other system resources. |
|
One of the parameter values is not valid. |
|
An unexpected provider error occurred. If this is returned, the error must be described in an entry in the application event log, giving the user information on how to resolve the problem. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | vsprov.h |