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
S_OK
The query was returned successfully.
E_INVALIDARG
One or more of the parameter values is not valid.
E_OUTOFMEMORY
Out of memory or other system resources.
E_ACCESSDENIED
The caller is not an administrator.
E_UNEXPECTED
An unexpected error occurred.
VSS_E_OBJECT_NOT_FOUND
An unexpected provider error occurred.
VSS_E_PROVIDER_VETO
Expected provider error. The provider logged the error in the event log. For more information, see Event and Error Handling Under VSS.
VSS_E_UNEXPECTED
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.

VSS_E_UNEXPECTED_PROVIDER_ERROR
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

See also

IVssAdmin