VSS_COMPONENT_TYPE enumeration (vswriter.h)

The VSS_COMPONENT_TYPE enumeration is used by both the requester and the writer to specify the type of component being used with a shadow copy backup operation.

Syntax

typedef enum VSS_COMPONENT_TYPE {
  VSS_CT_UNDEFINED = 0,
  VSS_CT_DATABASE,
  VSS_CT_FILEGROUP
} ;

Constants

 
VSS_CT_UNDEFINED
Value: 0
Undefined component type.


This value indicates an application error.
VSS_CT_DATABASE
Database component.
VSS_CT_FILEGROUP
File group component. This is any component other than a database.

Remarks

A writer sets a component's type when it adds the component to its Writer Metadata Document using IVssCreateWriterMetadata::AddComponent.

Writers and requesters can find the type information of components selected for inclusion in a Backup Components Document through calls to IVssComponent::GetComponentType to return a component type directly.

A requester can obtain the type of any component in a given writer's Writer Metadata Document by doing the following:

  1. Using IVssExamineWriterMetadata::GetComponent to obtain a IVssWMComponent interface
  2. Using IVssWMComponent::GetComponentInfo to return a VSS_COMPONENTINFO structure
  3. Examining the Type member of the VSS_COMPONENTINFO object

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header vswriter.h

See also

IVssComponent::GetComponentType

VSS_COMPONENTINFO

VSS_SOURCE_TYPE