IVssFileShareSnapshotProvider::Query method (vsprov.h)
Gets an enumeration of VSS_SNAPSHOT_PROP structures for all file share snapshots that are available to the application server.
Syntax
HRESULT Query(
[in] VSS_ID QueriedObjectId,
[in] VSS_OBJECT_TYPE eQueriedObjectType,
[in] VSS_OBJECT_TYPE eReturnedObjectsType,
[out] IVssEnumObject **ppEnum
);
Parameters
[in] QueriedObjectId
Reserved for system use. The value of this parameter must be GUID_NULL.
[in] eQueriedObjectType
Reserved for system use. The value of this parameter must be VSS_OBJECT_NONE.
[in] eReturnedObjectsType
Reserved for system use. The value of this parameter must be VSS_OBJECT_SNAPSHOT.
[out] ppEnum
The address of an IVssEnumObject interface pointer, which is initialized on return. Callers must release the interface. This parameter is required and cannot be null.
Return value
The following are the valid return codes for this method.
Value | Meaning |
---|---|
|
The query operation was successful. |
|
The caller does not have sufficient backup privileges or is not an administrator. |
|
One of the parameter values is not valid. |
|
The caller is out of memory or other system resources. |
|
Provider error. The provider logged the error in the event log. For more information, see Event and Error Handling Under VSS. |
Remarks
This method is typically called in response to requester generated snapshot query operations.
Calling the IVssEnumObject::Next method on the IVssEnumObject interface that is returned though the ppEnum parameter will return VSS_OBJECT_PROP structures containing a VSS_SNAPSHOT_PROP structure for each shadow copy.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps only] |
Minimum supported server | Windows Server 2012 R2 [desktop apps only] |
Target Platform | Windows |
Header | vsprov.h |
Library | VssApi.lib |