IVssAdmin::QueryProviders method (vsadmin.h)
The QueryProviders method queries all registered providers.
Syntax
HRESULT QueryProviders(
[out] IVssEnumObject **ppEnum
);
Parameters
[out] ppEnum
The address of an IVssEnumObject interface pointer, which is initialized on return. Callers must release the interface.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
The query was returned successfully. |
|
One or more of the parameter values is not valid. |
|
Out of memory or other system resources. |
|
The caller is not an administrator. |
|
An unexpected error occurred. |
|
An unexpected provider error occurred. |
|
Expected provider error. The provider logged the error in the event log. For more information, see Event and Error Handling Under VSS. |
|
Unexpected error. The error code is logged in the error log file. For more information, see
Event and Error Handling Under VSS.
Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP: This value is not supported until Windows Server 2008 R2 and Windows 7. E_UNEXPECTED is used instead. |
|
Unexpected provider error. The error code is logged in the error log. For more information, see Event and Error Handling Under VSS. |
Remarks
Calling the IVssEnumObject::Next method on the IVssEnumObject interface returned though the ppEnum parameter will return VSS_OBJECT_PROP structures containing a VSS_PROVIDER_PROP structure for each registered provider.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | vsadmin.h |